Resolution
This error usually occurs when Tentacle cannot decrypt its certificate using the current machine's encryption information.
Restore the original certificate from a portable backup, such as a PFX file, or generate a new Tentacle certificate and update the deployment target's registered thumbprint in Octopus Server.
Symptom
Tentacle fails to start or execute commands with an error similar to:
Unable to parse configuration key 'Tentacle.Certificate' as a 'String'.
Additional errors may indicate that the certificate could not be decrypted.
Scope: when this is the right article
This article applies when Tentacle cannot read its certificate from its configuration file, particularly after:
- Copying a Tentacle
.configfile from another machine. - Migrating or restoring a Tentacle installation to a different server.
- Changing the machine identity used to protect the certificate, including changes to
/etc/machine-idon Linux.
Cause
Tentacle stores its communication certificate in an encrypted form within its configuration file. The encryption is associated with the machine on which the certificate was configured.
On Windows, this protection uses the Windows Data Protection API (DPAPI). On Linux, the machine identity associated with /etc/machine-id is relevant to the encryption.
If the configuration is moved to another machine, or the machine identity changes, Tentacle may no longer be able to decrypt the stored certificate.
Diagnosis and fix
-
Check whether the Tentacle configuration was copied from another machine or the operating system was recently rebuilt. On Linux, inspect
/etc/machine-idand check whether it has changed or is being regenerated. -
Stop the Tentacle service and back up its existing configuration file before making changes.
-
If you have a PFX backup of the original Tentacle certificate, restore it using the import-certificate command. This preserves the original certificate thumbprint.
-
If the original certificate is unavailable, generate a replacement certificate on the affected machine:
Tentacle new-certificate --instance="Tentacle"
Replace Tentacle with your instance name if different. If the existing configuration cannot be loaded, you may need to recreate the Tentacle instance instead.
-
If a new certificate was generated, update the deployment target's certificate thumbprint under Infrastructure → Deployment Targets in the Octopus Web Portal.
-
Start the Tentacle service.
Verify
Confirm that Tentacle starts without certificate decryption errors.
Run a health check against the affected deployment target in Octopus Server and verify that communication succeeds.