WinInet -- Disable SSL Checks for Invalid CA?

From: Duane (duane_butler_del_at_comcast.net)
Date: 09/16/05


Date: 16 Sep 2005 09:16:24 -0700

Hi,

For testing purposes, does anyone know how to disable validation of
certificate authority within WinInet? I'm trying to connect to my own
secure site (https) and HttpSendRequest() keeps returning an INVALID_CA
(12045) error. I can't seem to find an approprate flag to pass into
HttpOpenRequest() to ignore "invalid" CA's. InternetSetOption() does
not seem to be the answer either. Overriding the WinInet user interface
via IsDialogBoxHandled()appeared promising, but the function never gets
called in this particular case. Anyone have any suggestions on how to
do this?

Thanks.

Duane.



Relevant Pages

  • Re: Proxy settings
    ... Before using WinInet from within VB think twice. ... For the moment we're using the HTTPS control from nsoftware in our software ... the internet connection will use the proxy setting in the IE. ...
    (microsoft.public.vb.winapi.networks)
  • Re: Problems on HTTPS Post Method
    ... > HTTPS Post method and retrieve the result back and close the HTTPS ... KB167658 "HOWTO: Automate Internet Explorer to ... WinInet, you need to use INTERNET_DEFAULT_HTTPS_PORT in InternetConnect ...
    (microsoft.public.vc.language)
  • Strange WinINet behavior
    ... When using WinINet APIs in synchronous mode and if HttpSendRequest is called ... with any additional HTTP headers, then WinINet seems to use a cached IP ... Clearing the IP DNS cache does not seem to help, ...
    (microsoft.public.win32.programmer.networks)