admin管理员组文章数量:1130349
解决无法建立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; |
解决无法建立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; |
版权声明:本文标题:解决无法建立SSLTLS安全通道(The request was aborted: Could not create SSLTLS secure channel)的问题 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754943754a2744717.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论