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

后端 未结 30 1852
遇见更好的自我
遇见更好的自我 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:05

    I was having this same issue and found this answer worked properly for me. The key is 3072. This link provides the details on the '3072' fix.

    ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
    
    XmlReader r = XmlReader.Create(url);
    SyndicationFeed albums = SyndicationFeed.Load(r);
    

    In my case two feeds required the fix:

    https://www.fbi.gov/feeds/fbi-in-the-news/atom.xml
    https://www.wired.com/feed/category/gear/latest/rss
    

提交回复
热议问题