安裝證書到Local Computer
存儲Trusted Root Certification Authorities
後的.NET WebRequest
仍然拋出:請求已中止:無法創建SSL/TLS安全通道 - SecurityProtocol行爲
The request was aborted: Could not create SSL/TLS secure channel
ServicePointManager.SecurityProtocol
現在包含SecurityProtocolType.Ssl3
| SecurityProtocolType.Tls
。
讀西蒙Dugré的回答https://stackoverflow.com/a/2904963/121968後,我已設置:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
它工作正常。 設置後背上:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls;
它仍然工作正常。我有兩個問題:
爲什麼它仍然有效?有緩存嗎?
爲什麼它以前只是標誌
Ssl3
工作,而不是 既Ssl3
和Tls
?