cancel
Showing results for 
Search instead for 
Did you mean: 

The request was aborted: Could not create SSL/TLS secure channel - TLS 1.3 & WebRequest

ŁukaszKiciak
Level 5

Hi guys,

I'm struggling with a HTTP request, which needs TLS 1.3.

Yesterday the ECB changed its TLS from 1.2 to 1.3 ( SSL Server Test: www.ecb.europa.eu (Powered by Qualys SSL Labs) ) and currently when I'm trying to execute a request receiving an error: 'The request was aborted: Could not create SSL/TLS secure channel.'

I have tried to add:
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13

but without success, a new error appears: ''The underlying connection was closed''

I would like to avoid skipping checking a certificate.

Does any of you have any experience with TLS 1.3 and WebRequest class?

Thanks for any bit of advice!

Best,
L



------------------------------
Łukasz Kiciak
RPA Developer
UI
Europe/London
------------------------------
4 REPLIES 4

sourabh.das
Level 2

@BluePrism  Any update on this we are facing similar issues

Hanyuan
Level 3

@ewilson Any Clue about this issue, we have same issue here. Everything works perfectly fine with Postman&TLS1.3, however encounter an same Error by using utility-http or Postman&TLS1.2. Any idea about that? Thanks,

Support for TLS 1.3 is only included in certain recent versions of Windows and was only added to the .NET Framework in 4.8. You can find the list of support Windows OS's at the following link:

https://learn.microsoft.com/en-us/windows/win32/secauthn/protocols-in-tls-ssl--schannel-ssp-#tls-protocol-version-support 

Cheers,

Eric

Thanks for your response @ewilson, clear now, we will see what we can do from our end.

Hanyuan