1. powershell 请求被中止: 未能创建 SSL/TLS 安全通道
英文搜索关键词 : the request was aborted could not create ssl/tls (net 4.6)
statckoverflow 上面大多答案如下:
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
也有用如下的 (强烈不建议使用)
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
原因:
- Tls1.0 由于安全原因, 大部分 https 服务端已经不再建议支持。
- .Net 4.5 及之前的版本, 不支持 Tls1.2 , SecurityProtocolType 这个枚举中没有 Tls12 这个项
- Windows Server 2012 R2 中, 安装了. Net 4.6.x 或 4.7.x 后, 虽然系