ChangeServerKeys.exe - "CHSRVK045E Error encrypting server private key. Code: -24."

ChangeServerKeys.exe - "CHSRVK045E Error encrypting server private key. Code: -24."

93
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 12:56 PM


Symptom


Changing the Vault Server Keys with the ChangeServerKeys.exe utility fails with the following error:
CHSRVK045E Error encrypting server private key. Code: -24.
 


Environment


10.10;11.6;11.7;12.0;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Vault-to-Vault;Vault Server;Vault

Cause


The directory where Server.key is stored is write protected.

Resolution


Make sure the folder where the Server.key file is located is accessible and that the user running the ChangeServerKeys uitlity has write permissions on it (Read, Write) and change them accordingly using Microsoft Windows Explorer.

If you are unsure which path the Server.key is stored in refer to the 'ServerKey' parameter in dbparm.ini.

Also, make sure that you run the ChangeServerKeys command in an admin command prompt, or you will get the same error.


Additional Information


Details

SYMPTOM:
Changing the Vault Server Keys with the ChangeServerKeys.exe utility fails with the following error:
"CHSRVK045E Error encrypting server private key. Code: -24."

PROBLEM:
The directory where Server.key is stored is write protected.

SOLUTION:
Make sure the folder where the Server.key file is located is accessible and that the user running the ChangeServerKeys uitlity has write permissions on it (Read, Write) and change them accordingly using Microsoft Windows Explorer.

If you are unsure which path the Server.key is stored in refer to the 'ServerKey' parameter in dbparm.ini.

Also, make sure that you run the ChangeServerKeys command in an admin command prompt, or you will get the same error !



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000tXdCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail