c#未能创建 SSL/TLS 安全通道

https请求时报错:未能创建 SSL/TLS 安全通道

解决方法:

Framework 4.0以上的版本 添加

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

Framework 4.0的版本  添加

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;

原文地址:https://www.cnblogs.com/musexiaoluo/p/15189787.html