How to generate server key on HSM in position higher than HSM#1

How to generate server key on HSM in position higher than HSM#1

83
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 12:59 PM


Question


CAVaultManager GenerateKeyOnHSM /ServerKey command attempts to generate the key in position #1 on HSM. How do I make it generate the key in a different position?


Environment


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

Answer


CAVaultManager GenerateKeyOnHSM /ServerKey command relies on ServerKey parameter in dbparm.ini in the Vault server installation folder to determine position of the newly generated server key. When ServerKey parameter is set to a path on the file system or to value of "HSM", the key will be generated in a position #1. When ServerKey parameter is set to ServerKey=HSM#[n], then CAVAultManager GenerateKeyOnHSM /ServerKey command will generate the key in position n+1. The maximum value of the position is 255, after which the command will generate the server key in position #1 again.



Additional Information


Details

Q:
CAVaultManager GenerateKeyOnHSM /ServerKey command attempts to generate the key in position #1 on HSM. How do I make it generate the key in a different position?

A:
CAVaultManager GenerateKeyOnHSM /ServerKey command relies on ServerKey parameter in dbparm.ini in the Vault server installation folder to determine position of the newly generated server key. When ServerKey parameter is set to a path on the file system or to value of "HSM", the key will be generated in a position #1. When ServerKey parameter is set to ServerKey=HSM#[n], then CAVAultManager GenerateKeyOnHSM /ServerKey command will generate the key in position n+1. The maximum value of the position is 255, after which the command will generate the server key in position #1 again.




Actions
  • Print
  • Copy Link

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