Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking SSL issuer

Status
Not open for further replies.

briby

Programmer
Apr 24, 2002
13
GB
Hi there
Doing a program that is transfering data over an SSL connection (where the server issues the certificate)
What I want the client program to do is check that the SSL certificate is from who it should be from (to prevent possible man in the middle attacks).
How can I do this? I thought probably using InternetQueryOption with INTERNET_OPTION_SECURITY_CERTIFICATE as an option, this returns something into a INTERNET_CERTIFICATE_INFO structure but then don't know how to information out.

Cheers for any help
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top