且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 HttpClient 允许不受信任的 SSL 证书

更新时间:2021-11-27 07:46:46

使用 Windows 8.1,您现在可以信任无效的 SSL 证书.您必须使用 Windows.Web.HttpClient,或者如果您想使用 System.Net.Http.HttpClient,您可以使用我写的消息处理程序适配器:http://www.nuget.org/packages/WinRtHttpClientHandler

With Windows 8.1, you can now trust invalid SSL certs. You have to either use the Windows.Web.HttpClient or if you want to use the System.Net.Http.HttpClient, you can use the message handler adapter I wrote: http://www.nuget.org/packages/WinRtHttpClientHandler

文档在 GitHub 上:https://github.com/onovotny/WinRtHttpClientHandler

Docs are on the GitHub: https://github.com/onovotny/WinRtHttpClientHandler