We are trying to deploy an Octopus Tentacle and have it register it to an existing instance through a powershell script. The part that consistently fails is when the Tentacle.exe command is executed to generate the certificate. We are doing this through a Powershell session to the machine and running the following command through that session:
$Cert = cmd.exe `/c Tentacle.exe new-certificate --instance “Admin” --if-blank --console
IF(($Cert[1].Contains(“generated”)) -or ($Cert[1].Contains(“exists”))){
The command fails with the following error
The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation. (Exception from HRESULT: 0x80090345)
System.Runtime.InteropServices.COMException (0x80090345): The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation.