Click to See Complete Forum and Search --> : retrieve a server certificate


Ritx
April 2nd, 2001, 09:08 AM
Hi there, I would like to kwow how I could manually retrieve a server certificate from an https request, in order to check if it was the certificate I was waiting for ( Issuer, cn...).
Actually I am trying to do so with the InternetQueryOption function of the wininet.dll what I want is to retrieve the server certificate in the Internet_option_security_certificate_struct
but I am not sure if that's the way to get it, so If somebody could help me doing so I will sleep better.
Thanks.
Ricardo.

bflecht
March 5th, 2003, 08:40 AM
Has the issue of retrieving and verifying server certificate information (CA, Expiration Date, etc) been addressed? I've attempted the same InternetQueryOption with hopes that Internet_option_security_certificate_struct would return the cert info, but no luck.

Any ideas?

Thanks,
Brad