赞
踩
Windows 2012R2 The SSL connection could not be established ,这个破问题研究了好几天。
以下代码有个鸟用。
- ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
- | SecurityProtocolType.Tls11
- | SecurityProtocolType.Tls12
- | SecurityProtocolType.Tls13;
- //设置最大连接数
- ServicePointManager.DefaultConnectionLimit = 200;
- //设置https验证方式
- ServicePointManager.Expect100Continue = true;
-
- ServicePointManager.ServerCertificateValidationCallback =
- new RemoteCertificateValidationCallback(CheckValidationResult);
从老外论坛上查出来是服务器的问题,不得不升级了服务器到Windows Server2016。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。