Before proceeding with the steps in this section, you must install the CyberArk PAS solution. For instructions on how to install the CyberArk PAS solution, refer to the CyberArk online documentation at the following URL: https://docs.cyberark.com/ProductDoc/OnlineHelp/PAS/Latest/en/Content/PAS%20INST/InstallationOverview.htm
Configure the Vault
Perform the following steps to configure Vault initially:To use an HSM attached to the network, configure the firewall to enable communication to the HSM device. In
DBParm.ini, configure the AllowNonStandardFWAddresses parameter to open the firewall and permit access to the device, as shown in the following example:None
Configure the PKCS #11 provider DLL and specify it in the PKCS11ProviderPath parameter in
DBParm.ini, as shown in the following example:None
Define the PIN/passphrase that the Vault uses when accessing an HSM. From a command line, run the following command, specifying the password of the identity created on the HSM for this integration:
Replace
<hsmpincode> with the password of the identity created on the HSM for this integration.Shell
Open
DBParm.ini and ensure you added the HSMPinCode parameter with the encrypted value of the PIN/passcode.Load the server key
The following process installs and stores the server key on the HSM. After you complete this process, storing the Server Key as a non-exportable key on the HSM, the Vault can use it.Generate the server key
Perform the following steps to generate the server key in the HSM:Run the following CAVaultManager command to generate the server key on the HSM:This command generates a new key for the Vault server, stores it in the HSM, and returns the key generation keyword. For example: HSM#5.Each time you create a key generation, the keyword allocated is one number higher than the current server key generation specified in
Shell
DBParm.ini. To create additional key generations successfully, you must manually delete the first generation of the server key. Otherwise, an error occurs. If the ServerKey parameter in the CAVaultManager command specifies a path instead of an HSM keyword, the first key generation is created (such as HSM#1).Re-encrypt the Vault data and metadata with the newly generated keys on the HSM. Run the following ChangeServerKeys command to change the encryption keys used for the Vault server:For example, the following command re-encrypts the Vault data and metadata with the encryption keys in
Shell
K:\PrivateArk\Keys, and the HSM#1 key becomes the server key.None
Open
DBParm.ini and specify in the ServerKey parameter the value of the key generation version returned by the preceding CAVaultManager command, as shown in the following output example:None

