【发布时间】:2011-10-04 09:25:00
【问题描述】:
我在使用HTTPAPI_VERSION_1 API 开发的Windows HTTP 服务器(HTTP 侦听器)上配置了SSL,使用HttpSetServiceConfiguration。
我使用了自签名证书并按照此链接中的步骤将其设置为受信任http://blogs.msdn.com/b/jpsanders/archive/2009/09/29/walkthrough-using-httplistener-as-an-ssl-simple-server.aspx
然后我尝试使用 msdn 中名为 WinHttpPostSample 的示例使用 https 连接到 http 服务器。
但是WinHttpSendRequest API 总是失败并出现错误
12044 (ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED)
我们如何防止 HTTP 服务器发送此错误或不强制服务器拥有客户端证书才能继续?
【问题讨论】: