将证书安装到.NET 的Local Computer
存储中后仍然抛出:Trusted Root Certification Authorities
WebRequest
The request was aborted: Could not create SSL/TLS secure channel
ServicePointManager.SecurityProtocol
现在包含SecurityProtocolType.Ssl3
| SecurityProtocolType.Tls
.
阅读 Simon Dugré 的回答https://stackoverflow.com/a/2904963/121968后,我设置了:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
它工作正常。重新设置后:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls;
它仍然可以正常工作。我有两个问题:
为什么它仍然有效?有缓存吗?
为什么它以前只使用 flag
Ssl3
而不是使用Ssl3
andTls
?