Request was aborted: Failed to create secure SSL / TLS channel - SecurityProtocol behavior

After installing the certificate in Local Computer the Trusted Root Certification Authorities .NET WebRequest still throws:

 The request was aborted: Could not create SSL/TLS secure channel 

ServicePointManager.SecurityProtocol now contains SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls .

After reading through Simon Dugré's answer https://stackoverflow.com/a/166958/212 , I installed:

 ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3; 

It is working fine. After installation:

 ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls; 

it is still working fine . I have two questions:

  • Why is it still working? Is there any caching?

  • And why did he only work with the Ssl3 flag Ssl3 , and not with Ssl3 and Tls ?

+6
source share
2 answers

There is a renewal of the SSL / TLS session, perhaps in your case. You may not have common TLS1 ciphersuites. The best way to check is to start Wireshark and see the SSL packets for your connection, they are very well explained in Wireshark.

+1
source

My solution was to add the lines:

  ServicePointManager.Expect100Continue = True ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 Or SecurityProtocolType.Tls 
0
source

All Articles