Resolution
Verify that the certificate thumbprints configured in Octopus Server and Tentacle match the certificates each component is using. If a certificate has changed, update the corresponding trusted thumbprint to restore communication.
Symptom
Tentacle health checks, deployments, or other operations fail because Octopus Server or Tentacle does not trust the certificate presented by the other component.
Errors may explicitly identify a certificate mismatch:
The server ... presented an unexpected security certificate.
We expected the server to present a certificate with the thumbprint 'AAAAA'.
Instead, it presented a certificate with a thumbprint of 'BBBBB'.
In some cases, the logs may only show a connection failure:
System.Net.Http.HttpRequestException:
The SSL connection could not be established, see inner exception.
System.Net.Sockets.SocketException (10054):
An existing connection was forcibly closed by the remote host.
The latter error is not specific to certificate mismatches and may have other causes.
Scope: when this is the right article
This article applies to Listening and Polling Tentacles when communication fails due to a certificate trust mismatch.
This may occur after regenerating certificates, reinstalling a Tentacle, or restoring a machine from a backup or image.
Cause
Octopus Server and Tentacle use certificates to establish mutual trust. Each component must recognize the certificate presented by the other.
If a certificate changes without updating the corresponding trusted thumbprint, the connection is rejected.
Diagnosis and fix
-
Verify the Tentacle certificate thumbprint:
-
Open Tentacle Manager on the affected machine or run
Tentacle.exe show-thumbprint. - In the Octopus Web Portal, navigate to Infrastructure > Deployment Targets and select the affected target.
- Compare the thumbprint configured for the deployment target with the Tentacle's actual certificate thumbprint.
-
If they differ, confirm the certificate change is expected, then update the target's configured thumbprint.
-
Verify the Octopus Server certificate thumbprint:
-
In the Octopus Web Portal, navigate to Configuration > Thumbprints and note the Server's thumbprint.
- Open Tentacle Manager and compare it with the trusted Octopus Server thumbprint.
- If they differ, confirm the certificate change is expected, then update the Tentacle's trusted Server thumbprint using the Update Trust instructions.
- Restart the Tentacle service if required.
If both thumbprints match and communication still fails, investigate other connectivity or TLS configuration issues.
Verify
Run a health check against the affected deployment target and confirm that communication succeeds. If the issue occurred during a deployment or another operation, repeat that operation to verify the problem is resolved.