Swarajya
2009-04-13 18:02:13 UTC
Hi,
I am trying to download a file using InternetReadFile(), with HTTP there
aren't any problems. When I am trying to make it work for HTTPS, I am
getting the following error - ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED (12044).
My investigations have revealed that the problem can be solved by using
InternetErrorDlg() or finding the appropriate certificate from certificate
store and sending it to the server. However, I have never seen
InternetErrorDlog() work (running as local system account from a service),
moreover, we want the download to be a silent download. Sending a
certificate doesn't look like an appealing idea, as we let our users set up
SSL for them, I can't add code to search for a specific certificate as we
don’t know which certificate the users are going to configure the product
with. I have tried sending using InternetSetOption() to send a NULL
certificate but that hasn't worked.
I see that browsers like IE and FF don't have problems downloading from
HTTPS URLs (although they do show warning text). Is there a workaround? Any
pointers or sample code would be highly appreciated.
Regards,
Swarajya
I am trying to download a file using InternetReadFile(), with HTTP there
aren't any problems. When I am trying to make it work for HTTPS, I am
getting the following error - ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED (12044).
My investigations have revealed that the problem can be solved by using
InternetErrorDlg() or finding the appropriate certificate from certificate
store and sending it to the server. However, I have never seen
InternetErrorDlog() work (running as local system account from a service),
moreover, we want the download to be a silent download. Sending a
certificate doesn't look like an appealing idea, as we let our users set up
SSL for them, I can't add code to search for a specific certificate as we
don’t know which certificate the users are going to configure the product
with. I have tried sending using InternetSetOption() to send a NULL
certificate but that hasn't worked.
I see that browsers like IE and FF don't have problems downloading from
HTTPS URLs (although they do show warning text). Is there a workaround? Any
pointers or sample code would be highly appreciated.
Regards,
Swarajya