CERT_E_UNTRUSTEDROOT

From: Vipin (vipin_at_nospam.com)
Date: 12/22/04


Date: Wed, 22 Dec 2004 12:02:19 +0530

Hi guys,
 This is with reference to the ssl library here:-
http://www.cheaphosting.net.nz/web/free/php/hosting-ssl_nt.htm

When I connect to the server,it gets in here.
           (!(*certGetCertificateChain)
(NIL,cert,NIL,cert->hCertStore,&chparam,NIL,NIL,&chain))
reason = ssl_analyze_status (GetLastError (),tmp);

"0x800b0109 (CERT_E_UNTRUSTEDROOT) returned by
CertVerifyCertificateChainPolicy! "

I do get the same error,
but with the wininet calls, once I do the HttpSendRequest(...)
,I get an error, so I show InternetErrorDlg(...) and after the
user clicks the "yes" in "Do you wish to proceed?",if I am to send
a request again using Httpsendrequest(...), it goes in fine.

I am not sure what the InternetErrorDlg(...) does internally to the
wininet state or atleast what should I be doing once I get a failure with
the library above. Any thoughts?

Thanks
Vipin