解决无法建立SSL / TLS安全通道(The request was aborted: Could not create SSL/TLS secure channel)的问题

  • Post author:
  • Post category:其他




解决无法建立SSL / TLS安全通道(The request was aborted: Could not create SSL/TLS secure channel)的问题



这个问题主要是没配置好SSL版本

在谷歌浏览器中打开该链接,按下F12,打开开发者工具,切换到Security选项卡,就可以看到了。这一串说明:

The connection to this site is encrypted and authenticated using TLS 1.2, ECDHE_RSA with P-256, and AES_128_GCM.

就是 TLS1.2


各SSL版本与C#代码的对应:

SSL/TLS版本 对应C#代码
SSL 3 ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
TLS 1.0 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
TLS 1.1 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11;



版权声明:本文为Sunsame_Wei原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。