Authentication failed because the remote party has closed the transport stream

Posted by

This error can occurs when your client is setting up a secure transport stream using TLSv1.1 or TLSv1.2 to a webservice/API for example.
In my case it was the PowerCli module installed on Windows Server 2019 setting up a connection to a VCenter server. The communication between this services is determined by the client OS and the installed .NET version.

There are 2 resolutions:
1. (The Hard way:) Call your software supplier and let them update their code.

2. (The easy most preferred way:) For enabling this communication in your .NET Framework configuration you can edit your registery.

Add the following registery key.

For 32-Bit processes:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\[.NET_version]
Add: Type: DWORD Name: SchUseStrongCrypto Value: 1

For 64-bit processes:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\[.NET_version]
Add: Type: DWORD Name: SchUseStrongCrypto Value: 1

I made the change for both architectures.

Leave a Reply

Your email address will not be published. Required fields are marked *