Trying to encrypt Webhooks the following error appears: "appsettings.Production.Json" file - "Crypto Operation Failed. Signing Credential settings is invalid."
Sometimes, he following error appears while trying to encrypt the "appsettings.Production.Json" file for Webhooks present under "C:\Program Files (x86)\UiPath\Orchestrator\Webhooks":
This was a known issue that happened with few of the previous Orchestrator versions.
This issue was resolved in the v2020.10.14 of the Orchestrator, and the bug fix is addressed in our Release Notes here.
However, if it's used on one of the previous versions of the Orchestrator and upgrading to v2020.10.14+ is not an option, follow the below steps to solve the issue:
- Prior to encrypting Webhooks "appsettings.Production.json", you need to add the signing certificate settings to it.
- You can copy the "SigningCredentialSettings" section from the Identity Server "appsettings.Production.json" file ("C:\Program Files (x86)\UiPath\Orchestrator\Identity") if you want to use the same certificate.
- This is illustrated in our docs under the "Webhooks" section.