HSM - ITADB343S Unable to read server's private key from file Server.pvk

HSM - ITADB343S Unable to read server's private key from file Server.pvk

184
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:05 PM


Symptom


After server keys have been loaded to HSM with the following command on the Primary vault:

CAVaultManager.exe LoadServerKeyToHSM /WrapKey

The following error is received in a DR vault that has been configured to work with the same HSM, upon statrup:

ITADB343S Unable to read server's private key from file Server.pvk



Environment


Privileged Access Manager (PAM, self-hosted) Vault Server Any additional vaults that are pointed to an HSM, when the load keys command used the /WrapKey option.

Cause


The vault's server certificate (Server.pem) and server certificate private key (Server.pvk) are re-generated and re-encrypted by the HSM Key (server.key).

When the /WrapKey option is used, the command will uninstall the existing server certificate and private key, and generate a new self-signed certificate, while encrypting the new private key with the HSM key.

This invalidates the certificates of the other vaults.


Resolution


Once the Primary vault keys were loaded to the HSM using the WrapKey option, on any additional vaults (DR, secondary DR, satellite vaults etc.) perform the following steps:

1. Complete the 4 changes in dbparm.ini that will point the vault to use the HSM-
- Encrypt the HSM PIN (using the CAVaultManager SecureSecretFiles command)
- Point to the HSM DLL (manual edit)
- Add firewall rules (manual edit)
- Change the value of "ServerKey" to HSM (manual edit)

2. If a self-signed certificate was being used: Use the "cacert" utility with the /Uninstall flag, to generate a new self-signed certificate (Server.pem and Server.pvk files), that will be encrypted by the HSM key.
OR
3. If a custom CA signed certificate was being used: Use the "cacert" utility with the /Import flag, to re-import any custom CA certificate, that will be encrypted by the HSM key.
For more information regarding the cacert utility see the official documentation in the link below:
https://docs.cyberark.com/PAS/Latest/en/Content/PASIMP/CACert.htm


Actions
  • Print
  • Copy Link

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