SSL TLS版本问题

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:49   1976   0

.net框架的默认协议:

  • NET Framework 4.5 and 4.5.1: SSLv3 and TLSv1
  • NET Framework 4.5.2: SSLv3, TLSv1, and TLSv1.1
  • NET Framework 4.6 and higher: TLSv1, TLSv1.1, and TLS1.2

如果服务器协议有限制或者升级,需要修改代码中的安全协议。ps:全局配置

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls;

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP