The request was aborted: Could not create SSL/TLS secure channel

后端 未结 30 2348
遇见更好的自我
遇见更好的自我 2020-11-22 01:21

We are unable to connect to an HTTPS server using WebRequest because of this error message:

The request was aborted: Could not create SSL/TLS secur

30条回答
  •  独厮守ぢ
    2020-11-22 02:04

    I had this problem trying to hit https://ct.mob0.com/Styles/Fun.png, which is an image distributed by CloudFlare on its CDN that supports crazy stuff like SPDY and weird redirect SSL certs.

    Instead of specifying Ssl3 as in Simons answer I was able to fix it by going down to Tls12 like this:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
    new WebClient().DownloadData("https://ct.mob0.com/Styles/Fun.png");
    

提交回复
热议问题