.NET-The request was aborted: Could not create SSL/TLS..

Questions and answers about Plum Fuse+

Moderators: admin, support

  • Author
  • Message


  • Posts: 3
  • Joined: Thu Jun 13, 2019 9:32 pm

.NET-The request was aborted: Could not create SSL/TLS..

PostTue Jun 25, 2019 9:31 am

When developing in .NET 4.0+ when making a POST call was I getting this error:
"The request was aborted: Could not create SSL/TLS secure channel."

I was able to fix it by adding one of these to the httpwebRequest object.

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; //TLS 1.2
ServicePointManager.SecurityProtocol = (SecurityProtocolType)768; //TLS 1.1

ServicePointManager.Expect100Continue = True
ServicePointManager.SecurityProtocol = CType(3072, SecurityProtocolType) ' TLS 1.2
myWebRequest = DirectCast(WebRequest.Create(baseUri.ToString), HttpWebRequest)
myWebRequest.Method = "POST"

If the above does not fix it then use this also:
https://stackoverflow.com/questions/337 ... ect=1&lq=1

Make the following changes in your Registry and it should work:
1.) .NET Framework strong cryptography registry keys
2.) Secure Channel (Schannel) TLS 1.2 registry keys
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server]

Return to Plum Fuse+ Q&A

Who is online

Users browsing this forum: No registered users and 1 guest