How to verify ownership of the correct master key (recprv.key).

How to verify ownership of the correct master key (recprv.key).

96
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:54 PM


Objective


The recpub.key found in both the master CD/folder and the operator CD/folder are always identical. Therefore, to confirm the accuracy of the master key, you can cross-reference the operator key (recpub.key) currently in use on the vault with the operator key (recpub.key) included with the original master key (recprv.key).

Since the master key (recprv.key) can only be utilized with the corresponding operator key (recpub.key) it was initially shipped with, we can simplify the process by comparing the hashes of the recpub.key included with the master key and the recpub.key currently in use by the vault.

Please note: Access to the original master CD or downloaded digitized encryption keys is necessary for this verification process.



Environment


Privileged Access Manager (PAM, self-hosted) Vault Server

Procedure


Obtain the hash of the recpub.key on the vault server. 

  • Log on to the primary vault and navigate to the Dbparm.ini file.
  • dbparm.ini is located in the following location:  Drive:\Program Files (x86)\PrivateArk\Server\conf\dbparm.ini
  • Open and search for RecoveryPubKey="drive\RecPub.key" - Note the path to the file. 
  • Open PowerShell and run the following command. 
Get-FileHash Drive\recpub.key -Algorithm SHA512 | select Hash
  • Example Output
  • Make note of the hash for later comparison. 

Obtain the hash of the recpub.key on the MasterCD/Downloaded Digitized Encryption Keys. 

  • Navigate to the drive/folder containing the master keys:  drive\operator\recpub.key
  • Open PowerShell and run the following command. 
Get-FileHash Drive\recpub.key -Algorithm SHA512 | select Hash​​
  • Example Output
  • Make note of the hash for later comparison. 

Compare the two hashes. 

  • If the two hashes are the same value, then the recpub.key in use is the same as the digitized encryption CDs.   
  • If they are different a change has occurred and the original recpub.key is no longer in use. 

If the hashes do not match, please reach out to your Account Executive with an inquiry about the master key recovery service (Master Key Recovery (MKR) Service (cyberark.com).



Actions
  • Print
  • Copy Link

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