当前位置:   article > 正文

Windows Server2012 R2中对外请求https失败_windows the ssl connection could not be establishe

windows the ssl connection could not be established

Windows 2012R2 The SSL connection could not be established ,这个破问题研究了好几天。

以下代码有个鸟用。

  1. ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
  2. | SecurityProtocolType.Tls11
  3. | SecurityProtocolType.Tls12
  4. | SecurityProtocolType.Tls13;
  5. //设置最大连接数
  6. ServicePointManager.DefaultConnectionLimit = 200;
  7. //设置https验证方式
  8. ServicePointManager.Expect100Continue = true;
  9. ServicePointManager.ServerCertificateValidationCallback =
  10. new RemoteCertificateValidationCallback(CheckValidationResult);

从老外论坛上查出来是服务器的问题,不得不升级了服务器到Windows Server2016。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Li_阴宅/article/detail/830682
推荐阅读
相关标签
  

闽ICP备14008679号