Schannel for secure communications and will attempt to use the best available protocol available to both servers. A few industry pressures and changes have been causing problems for Tentacle communications:
- Firstly TLS 1.1 and TLS 1.2 are disabled by default on Windows Server 2003 and Windows Server 2008 and need to be manually enabled.
- Server administrators are generally being encouraged by Microsoft to prefer TLS 1.1 or 1.2 over TLS 1.0.
- Similarly certain ciphers and hashes are commonly being disabled.
- Recent Windows patches (like KB3140245 and KB3174644) enable server administrators to modify the default behavior of Schannel using group policy or registry changes
A mismatch in the enabled protocols, ciphers, hashes or key exchanges on either end can break Tentacle communications.
Error message you may see when Schannel fails:
System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: One or more of the parameters passed to the function was invalid
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Depending on your circumstances you may need to implement one or more of these suggested solutions.
Solution: Ensure TLS 1.1 and/or TLS 1.2 are enabled on both machines
TLS 1.1 and 1.2 are disabled by default on Windows Server 2003 and 2008 and need to be enabled by an administrator. See this blog post for more information. You can enable TLS 1.2 by changing the Windows registry (as described in that blog post), or use a tool like IISCrypto. In some cases we have seen the Tentacle machine forced to use TLS 1.2 (via KB3140245) when the Octopus Server only supported TLS 1.0. Enabling TLS 1.2 on the Octopus Server fixed that problem.
Solution: Upgrade Octopus Server and Tentacle to 3.1 or newer
Upgrading Octopus Server and Tentacle to 3.1 or newer will enable TLS 1.2 which is enabled in most networks, noting TLS 1.2 needs to be enabled on Windows Server 2003 and Windows Server 2008.
- Octopus Server and Tentacle prior to 3.1 used TLS 1.0 (due to a dependency on .NET Framework 4.0).
- Octopus Server and Tentacle 3.1 or newer enable the newer TLS protocols and will use TLS 1.2 by default (with the updated dependency on .NET Framework 4.5).
Solution: Ensure Schannel is configured consistently on both servers
You can use a tool like IISCrypto to confirm and repair the configuration of Schannel on both servers. A mismatch in the enabled protocols, ciphers, hashes or key exchanges on either end can break Tentacle communications.
Solution: Consider rolling back recent Windows patches
Some customers have decided to roll back the Windows patches mentioned above and have reported success getting Tentacle communication working again. We would recommend upgrading Octopus and Tentacle to make use of TLS 1.2 by default in preference to rolling back any patches.