j***@gmail.com
2007-03-21 17:38:01 UTC
I've asked this here before, and I've asked on the Microsoft forums
and gotten no answer, but I'll try again. WinHttp 5.1 ignores calls to
WinHttpSetOption() with the SECURITY_FLAG_IGNORE_UNKNOWN_CA and
SECURITY_FLAG_IGNORE_CERT_CN_INVALID flags. Because of this one cannot
send requests to an HTTPS server with a self-signed certificate, nor
can one use a self-signed client certificate. This is very, very
annoying during development because it's not always feasible to have a
third party sign your certs. This is a deal-killer for a good number
of legitimate uses, like sending requests to a test or development web
server that isn't going to have a signed server cert and/or whose host
and domain name doesn't match the CN on its certificate.
Disabling these checks worked gloriously under WinHttp 5.0, but 5.0 is
dead. It is inconceivable that I am the only person to face this
problem. Can anyone give me any information about how to get around
this?
and gotten no answer, but I'll try again. WinHttp 5.1 ignores calls to
WinHttpSetOption() with the SECURITY_FLAG_IGNORE_UNKNOWN_CA and
SECURITY_FLAG_IGNORE_CERT_CN_INVALID flags. Because of this one cannot
send requests to an HTTPS server with a self-signed certificate, nor
can one use a self-signed client certificate. This is very, very
annoying during development because it's not always feasible to have a
third party sign your certs. This is a deal-killer for a good number
of legitimate uses, like sending requests to a test or development web
server that isn't going to have a signed server cert and/or whose host
and domain name doesn't match the CN on its certificate.
Disabling these checks worked gloriously under WinHttp 5.0, but 5.0 is
dead. It is inconceivable that I am the only person to face this
problem. Can anyone give me any information about how to get around
this?