Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Nov : IE7 error getting server certificate

www.cryer.info
Managed Newsgroup Archive

IE7 error getting server certificate

Subject:IE7 error getting server certificate
Posted by:"Jason" (jasonfi..@att.net)
Date:Fri, 17 Nov 2006 13:33:13

I have an application that uses Wininet to connect to other servers.  For
one we need to get and check the server certificate and see if it is valid.
All works fine with IE6, but upgrading to IE7 and the program fails.  When
checking trhe information manually using IE7 I can see the certificate and
everything looks fine.  When using WININET to get the information I get an
errorcode 120 (INVALID BUFFER).  I have tried increasing the buffer, but I
always get the error.  I have checked the new settings in the Internet
Options to make sure that SSL is enabled and have checked the encryption of
the site to make sure it is 128-bit.  I don't know what else to do.  I am
using the following code:

          IF
InternetQueryOption(hRequest,INTERNET_OPTION_SECURITY_CERTIFICATE,,dwBytesAvailable)

If there is anyone that can help point me in the right direction, I would
really appreciate it.


--
Jason Johnson
jasonfive@att.net

Replies:

www.cryer.info
Managed Newsgroup Archive