Error "ITATP158E Change Server Keys command finished with errors. Reason: Change server keys failed. Code 10" experienced when performing ChangeServerKeys action
Symptom
After deploying a new Vault instance using the provided AMI within AWS, it is a requirement to change server keys with KMS using the following documentation: Change Server Keys in the Cloud | Idira Docs
However, when performing step 2 of section "Change the server key on the Primary Vault", the following error is observed, and it is not possible to continue with this process:
CHSRVK044E Ilegal private recovery key C:\Keys\RecPrv.key
CHSRVK042I ChangeServerKeys process ended.
ITATP158E Change Server Keys command finished with errors. Reason: Change server keys failed. Code 10. Change server keys failed. Code 10
Environment
12.2 Privileged Access Manager (PAM, self-hosted) Vault Server Vault Server ChangeServerKey
Cause
Incorrect RecPrv.key is being used for this procedure
Resolution
To prevent this error from appearing, ensure that the correct RecPrv.key is being used (defined within the Vault "dbparm.ini" file) and retry the rekey procedure as outlined in the documentation provided within the Issue section of this Article.