C# .NET HttpWebRequest 显示指定SSL TLS 版本
在程序启动时加入这段代码:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
ServicePointManager.SecurityProtocol 是全局控制,不需要每次请求都指定。
标签:TLS,C#,SSL,HttpWebRequest,NET,SecurityProtocolType From: https://www.cnblogs.com/runliuv/p/17531323.html