In our app, where we today use CAPICOM, we have the following code:
WinApi.InternetSetOption(
AData, INTERNET_OPTION_CLIENT_CERT_CONTEXT, PCertContext, Sizeof(CERT_CONTEXT))
I am investigating the possibility to change to the SecureBridge implementation of CryptoAPI. If I use a TScCryptoAPIStorage to get a certificate - what is the "PCertContext" equivalent?
/Anders
Using certificate
Re: Using certificate
You can use the TScCertificate.Handle property.
Re: Using certificate
??
Just like:
h := <a certificate>.handle;
WinApi.InternetSetOption(
AData, INTERNET_OPTION_CLIENT_CERT_CONTEXT, h, Sizeof(h));
???
Thanks
Anders
Just like:
h := <a certificate>.handle;
WinApi.InternetSetOption(
AData, INTERNET_OPTION_CLIENT_CERT_CONTEXT, h, Sizeof(h));
???
Thanks
Anders
Re: Using certificate
Use the following code:
Code: Select all
h := <a certificate>.handle;
WinApi.InternetSetOption(
AData, INTERNET_OPTION_CLIENT_CERT_CONTEXT, h, Sizeof(CERT_CONTEXT));
Re: Using certificate
Thanks a lot - seems promising! I will try it out.
/Anders
/Anders
Re: Using certificate
Feel free to contact us if you have any further questions about SecureBridge.