<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article ChangeServerKeys - How to Change Vault Server Keys in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/changeserverkeys-how-to-change-vault-server-keys/ta-p/1428843</link>
    <description>How do I change Vault server keys?

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;B&gt;Note&lt;/B&gt;: Timeliness to replace vault keys depends on:&amp;nbsp;&lt;BR /&gt;a.&amp;nbsp;vault size&lt;BR /&gt;b.&amp;nbsp;amount of stored objects in vault safes&lt;BR /&gt;c. hardware on which vault installed.&amp;nbsp;&lt;BR /&gt;The re-key process of a fresh vault with a minimal set of objects should take around 5 minutes. A vault-sized 80G with average specs will likely take more than 5 hours.&lt;BR /&gt;&lt;BR /&gt;1. Cyberark&amp;nbsp;Representative&amp;nbsp;to request the new set of keys.&lt;BR /&gt;For Self-Hosted customers,&lt;A href="https://community.cyberark.com/s/article/Digitized-Encryption-Keys-Delivery-End-User-Guide" target="_blank"&gt; digital encryptions keys&lt;/A&gt; will be delivered via secure email&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;BR /&gt;&lt;I&gt;&lt;B&gt;Note&lt;/B&gt;: On the Primary Vault and DR Vault&lt;/I&gt;&lt;/DIV&gt;
&lt;UL&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;Ensure that you are able to mount the new keys/CDs&lt;/I&gt;&lt;/LI&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;Ensure that the RecoveryPrvKey location in the dbparm.ini is pointing to the correct path where the recprv.key is located (if not, please see Step #2 in Knowledge Article 000005496 - How to log in as the Master user)&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;
2. If a DR vault exists, stop the "Idira Vault Disaster Recovery" service and the "PrivateArk Database" service (ensure that the "Idira Logic Container" service is stopped as well).&lt;BR /&gt;&amp;nbsp;
&lt;DIV style="margin-left: 40px;"&gt;&lt;I&gt;a. The same procedure using the same set of new keys should be applied to the DR Vault after Primary is successfully re-keyed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;b.&amp;nbsp;&lt;B&gt;Important&lt;/B&gt;: Do not run the DR Service when keys are different between production and DR. Doing so makes the Vault data on the DR Vault unusable and Vault and DR components will have to be uninstalled and reinstalled at the DR location.&lt;BR /&gt;&lt;BR /&gt;c. In order to run the ChangeServerKeys utility, you'll need to stop the "Idira Vault Disaster Recovery" service. When finished, start the "Idira Vault Disaster Recovery" service back up and make sure replication is ended successfully.&lt;/I&gt;&lt;/DIV&gt;
&lt;BR /&gt;3.&amp;nbsp; Stop the "PrivateArk Server" and "PrivateArk Database" services (ensure that the "Idira Logic Container" service is stopped as well).&lt;BR /&gt;&lt;BR /&gt;4.&amp;nbsp; Make a backup copy of the following: &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;
&lt;DIV style="margin-left: 40px;"&gt;&lt;I&gt;&lt;STRONG&gt;a&lt;/STRONG&gt;. Vault database (Safes folder. See TSParm.ini for location)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;b&lt;/STRONG&gt;. Keys folder&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;c&lt;/STRONG&gt;. Vault installation folder (%Program Files%\PrivateArk\Server) and LDAP Folders (%Program Files%\PrivateArk\Server\LDAP)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;d&lt;/STRONG&gt;. The RADIUS secret file (see dbparm.ini for location. Default is Server folder)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;e&lt;/STRONG&gt;. The database password (see dbparm.ini for location)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;f&lt;/STRONG&gt;. The emergency password (named VaultEmergency.pass)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;g&lt;/STRONG&gt;. The PKI Vault private key (see dbparm.ini for location)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;h&lt;/STRONG&gt;. The entropy file (see dbparm.ini for location)&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;
&lt;BR /&gt;5.&amp;nbsp; Insert the New Master CD into the CD ROM drive - This will be the path for the &amp;lt;New Keys Dir&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;6.&amp;nbsp; Copy the Old Master CD to the Server - This is needed to change the server keys.&lt;BR /&gt;&lt;BR /&gt;7.&amp;nbsp; Change the 'RecoveryPrvKey' parameter in the DBParm.ini to point to the location of the old private recovery key (RecPrv.key)&lt;BR /&gt;&lt;BR /&gt;8.&amp;nbsp; Start the "PrivateArk Database" service.&lt;BR /&gt;&lt;BR /&gt;9. &amp;nbsp;Run the ChangeServerKeys utility from the command line&lt;BR /&gt;&amp;nbsp;
&lt;DIV style="margin-left: 40px;"&gt;&lt;I&gt;a. The utility is located in the %Program Files%\PrivateArk\Server folder&lt;BR /&gt;&lt;BR /&gt;b. The syntax is as follows:&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 80px;"&gt;ChangeServerKeys.exe &amp;lt;New&amp;nbsp;Keys Dir&amp;gt; &amp;lt;full path of the DB Emergency Password File Name&amp;gt; &amp;lt;HSM KeySet (Optional)&amp;gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;BR /&gt;&lt;I&gt;For example:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ChangeServerKeys.exe E:\NewKeys&amp;nbsp;D:\CyberArk\Keys\VaultEmergency.pass&lt;/I&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;UL&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;If folder paths contain spaces, use double quotes for the paths&lt;/I&gt;&lt;/LI&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;Ensure that the new keys folder contains both the new recprv.key and new recpub.key&lt;/I&gt;&lt;/LI&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;If HSM is being used then provide its Key set in the command as well&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;BR /&gt;10. &amp;nbsp;If there were no errors with the command continue to step 11. If an error occurred resolve the error before continuing on.&lt;BR /&gt;&lt;BR /&gt;11. &amp;nbsp;Overwrite the old Server.key and RecPub.key under the original keys folder with the new keys from the NewKeys folder. This way you keep all the files under the old Keys folder as pointed to in DBParm.ini (essentially, replace the old Server.key and old Recpub.key with the new keys).&lt;BR /&gt;&lt;BR /&gt;12. &amp;nbsp;If keys with a different encryption algorithm were used, the following parameters must be changed in the dbparm.ini as well:
&lt;UL&gt;&lt;LI&gt;SymCipherAlg&lt;/LI&gt;&lt;LI&gt;ASymCipherAlg&lt;/LI&gt;&lt;/UL&gt;
13. &amp;nbsp;Delete the Old Master CD from the Computer&lt;BR /&gt;&lt;BR /&gt;14.&amp;nbsp; &lt;I&gt;&lt;B&gt;Important:&lt;/B&gt;&lt;/I&gt;&amp;nbsp; If a DR vault exists, perform the same procedure as described here on the DR Server. Do not proceed until the DR Vault has been re-keyed.&lt;BR /&gt;&lt;BR /&gt;15. &amp;nbsp;Start the Vault Server service (On the Main Vault and ensure that the "Idira Logic Container" service is running).&lt;BR /&gt;&lt;BR /&gt;16. &amp;nbsp;Log on using the PrivateArk Client as an administrative user to verify that the Vault is functioning normally and configured correctly.&lt;BR /&gt;&lt;BR /&gt;17. &amp;nbsp;Check that no other errors exist in the ITA log&lt;BR /&gt;&lt;BR /&gt;18.&amp;nbsp;&lt;I&gt;&lt;B&gt; &lt;/B&gt;&lt;/I&gt;If a DR exists and after the DR rekey is complete, Start the "Idira Logic Container" service and the "Idira Vault Disaster Recovery" service. Check replication in the padr.log.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;19.&amp;nbsp; If the recprv.key has been copied to the Vault file system, ensure that this key has been completely removed/deleted for security purposes.&lt;BR /&gt;&lt;BR /&gt;20. &amp;nbsp;If possible, we recommend performing this procedure on a test Vault that contains the production Vault data to identify any possible problems.&lt;BR /&gt;&lt;BR /&gt;For further information see the "ChangeServerKeys" section of the Implementations Guide.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;B&gt;For an HA Environment&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;1. &amp;nbsp;Ensure all resources are currently online on Node A&lt;BR /&gt;2. &amp;nbsp;Stop the Cluster Service on Node B using the Cluster Administration console&amp;nbsp;&lt;BR /&gt;3. &amp;nbsp;Do the steps above on Node A&lt;BR /&gt;4. &amp;nbsp;Copy the server keys directory from Node A to Node B.&lt;BR /&gt;5. &amp;nbsp;Start Cluster service on Node B using cluster administrator&lt;BR /&gt;6. &amp;nbsp;Move cluster group to Node B&lt;BR /&gt;7. &amp;nbsp;Test the Vault by logging in as Master user to verify that the Vault is functioning normally and configured correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;B&gt;Note&lt;/B&gt;&lt;/I&gt;: You can also generate the new keys by yourself using PAKeyGen Tool and PKCS#11-compliant random number generator.&lt;BR /&gt;&lt;BR /&gt;See also ChangeServerKeys section in the Implementation Guide.

&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Q:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;How do I change vault server keys?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;A:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Obtain the new keys.&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;Please contact Support to request new set of keys. Keys are physically shipped to the customer via FedEx.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style="margin-left: 40px;"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;B&gt;Note&lt;/B&gt;:&amp;nbsp; &amp;nbsp; &amp;nbsp;On the Primary Vault and DR Vault&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;&lt;LI class="MsoListParagraphCxSpFirst" style="margin-left: 120px;"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;&lt;I&gt;Ensure that you are able to mount the new keys/CDs&amp;nbsp;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class="MsoListParagraphCxSpFirst" style="margin-left: 120px;"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;&lt;I&gt;Ensure that the RecoveryPrvKey location is pointing to the path of the current recprv.key (if not, please see Step #2 in Knowledge Article&amp;nbsp;000005496 - How to log in as the Master user)&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If a DR exists, stop the "Idira Vault Disaster Recovery" service&amp;nbsp;and the "PrivateArk Database" service (ensure that the "Idira Logic Container" service is stopped).&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The same procedure using the same set of new keys should be applied to the DR Vault after Primary is successfully re-keyed.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;b. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;B&gt;Important: &lt;/B&gt;Do not run the DR Service when keys are different between production and DR. Doing so makes the Vault data on the DR Vault unusable and Vault and DR components will have to be un-installed and re-installed at the DR location.&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;c.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In order to run the ChangeServerKeys utility, you'll need to stop the "Idira Vault Disaster Recovery" service. When finished, start the "Idira Vault Disaster Recovery" service back up and make sure replication is ended successfully.&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stop the "PrivateArk Server" and "PrivateArk&amp;nbsp;Database" Services (&lt;/FONT&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;ensure that the "Idira Logic Container" service is stopped).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Make a backup copy of the following:&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vault database (Safes folder. See TSParm.ini for location)&lt;/SPAN&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;b.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keys folder&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;c. &amp;nbsp; &amp;nbsp; &amp;nbsp;Vault installation folder (%Program Files%\PrivateArk\Server) and LDAP Folders&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;(%Program Files%\PrivateArk\Server\LDAP)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;d.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The RADIUS secret file&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;(see dbparm.ini for location. Default is Server folder)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;e. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;The database password&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;(see dbparm.ini for location)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;f. &amp;nbsp; &amp;nbsp; &amp;nbsp; The emergency password (named VaultEmergency.pass)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;g. &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;The PKI Vault private key (see dbparm.ini for location)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;h. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;The entropy file&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;(see dbparm.ini for location)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create a NewKeys folder and store the new Operator keys into it. Do not copy the Private Recovery Key to the NewKeys folder as this is a security breach.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;6.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Insert the New Master CD to the CD ROM drive - This will be the path for the &amp;lt;New Master Keys Dir&amp;gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;7.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy the Old Master CD to the Server - This is needed to change the server keys.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;8.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change the 'RecoveryPrvKey' parameter in the DBParm.ini to point to the location of the old private recovery key (RecPrv.key).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;9.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start &lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;only the&amp;nbsp;"PrivateArk&amp;nbsp;Database" Service.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;10.&amp;nbsp; Run the ChangeServerKeys utility from command line &lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The utility is is located in the %Program Files%\PrivateArk\Server folder&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;b.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The syntax is as follows:&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Courier, monospace" size="2"&gt;ChangeServerKeys.exe &amp;lt;New Keys folder&amp;gt; &amp;lt;full path of the current DB Emergency Password File Name&amp;gt; &amp;lt;HSM KeySet (Optional)&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;For example:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT face="Courier, monospace"&gt;ChangeServerKeys.exe E:\NewKeys D:\CyberArk\Keys\VaultEmergency.pass&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;If folder paths contain spaces, use double quotes for the paths&lt;BR /&gt;The new keys folder&amp;nbsp;must contain both the new recpub.key and new recprv.key&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;If HSM is being used then provide its Key set in the command as well&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;11.&amp;nbsp; If there were no errors with the command continue to step 12. If an error occurred resolve the error before continuing on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;12.&amp;nbsp; Overwrite the old Server.key and RecPub.key under the original keys folder with the new keys from the NewKeys folder. This way you keep all the files under the old Keys folder as pointed to in DBParm.ini (Essentially, replace the old Server.key and old Recpub.key with the new keys).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style="margin-left: 80px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;13.&amp;nbsp; If keys with a different encryption algorithm were used, the following parameters must be changed in the dbparm.ini as well:&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;SymCipherAlg&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;ASymCipherAlg&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;14.&amp;nbsp; Delete the Old Master CD from the Computer.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;15.&amp;nbsp; &lt;I&gt;&lt;B&gt;Important:&lt;/B&gt;&lt;/I&gt; If a DR exists, perform the same procedure as described here on the DR Server.&amp;nbsp;&amp;nbsp;Do not proceed until the next step until the DR Vault has been re-keyed.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;16.&amp;nbsp; Start the Vault Server service (On the Main Vault and ensure that the "Idira Logic Container" service is up)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;17.&amp;nbsp; Log on using the PrivateArk Client as an administrative user to verify that the Vault is functioning normally and configured correctly.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;18.&amp;nbsp; Check that no other errors exist in the ITA log.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;19.&amp;nbsp; If a DR exists and after the DR rekey is complete, start the "Idira Logic Container" service&amp;nbsp;and "Idira Vault Disaster Recovery" service. Check replication in the padr.log.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;20.&amp;nbsp; If possible, it is recommends performing this procedure on a test Vault that contains the production Vault data to identify any possible problems.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;21.&amp;nbsp; For further information see the "ChangeServerKeys" section of the Implementations Guide.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast" style=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast" style=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;For an HA Environment&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;1. &amp;nbsp;Ensure all resources are currently online on Node A&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;2. &amp;nbsp;Stop the Cluster Service on Node B using Cluster Administration console&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;3. &amp;nbsp;Do the steps above on Node A&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;4. &amp;nbsp;Copy the server keys directory from Node A to Node B.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;5. &amp;nbsp;Start Cluster service on Node B using cluster administrator&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;6. &amp;nbsp;Move cluster group to Node B&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;7. &amp;nbsp;Test the Vault by logging in as Master user to verify&amp;nbsp; that the Vault is functioning normally and configured correctly.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Note: You can also generate the new keys by yourself using PAKeyGen Tool and PKCS#11-compliant random number generator.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;See also&amp;nbsp;ChangeServerKeys section in the Implementation Guide.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2026 19:57:10 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2026-11-05T19:57:10Z</dc:date>
    <item>
      <title>ChangeServerKeys - How to Change Vault Server Keys</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/changeserverkeys-how-to-change-vault-server-keys/ta-p/1428843</link>
      <description>How do I change Vault server keys?

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;B&gt;Note&lt;/B&gt;: Timeliness to replace vault keys depends on:&amp;nbsp;&lt;BR /&gt;a.&amp;nbsp;vault size&lt;BR /&gt;b.&amp;nbsp;amount of stored objects in vault safes&lt;BR /&gt;c. hardware on which vault installed.&amp;nbsp;&lt;BR /&gt;The re-key process of a fresh vault with a minimal set of objects should take around 5 minutes. A vault-sized 80G with average specs will likely take more than 5 hours.&lt;BR /&gt;&lt;BR /&gt;1. Cyberark&amp;nbsp;Representative&amp;nbsp;to request the new set of keys.&lt;BR /&gt;For Self-Hosted customers,&lt;A href="https://community.cyberark.com/s/article/Digitized-Encryption-Keys-Delivery-End-User-Guide" target="_blank"&gt; digital encryptions keys&lt;/A&gt; will be delivered via secure email&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;BR /&gt;&lt;I&gt;&lt;B&gt;Note&lt;/B&gt;: On the Primary Vault and DR Vault&lt;/I&gt;&lt;/DIV&gt;
&lt;UL&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;Ensure that you are able to mount the new keys/CDs&lt;/I&gt;&lt;/LI&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;Ensure that the RecoveryPrvKey location in the dbparm.ini is pointing to the correct path where the recprv.key is located (if not, please see Step #2 in Knowledge Article 000005496 - How to log in as the Master user)&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;
2. If a DR vault exists, stop the "Idira Vault Disaster Recovery" service and the "PrivateArk Database" service (ensure that the "Idira Logic Container" service is stopped as well).&lt;BR /&gt;&amp;nbsp;
&lt;DIV style="margin-left: 40px;"&gt;&lt;I&gt;a. The same procedure using the same set of new keys should be applied to the DR Vault after Primary is successfully re-keyed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;b.&amp;nbsp;&lt;B&gt;Important&lt;/B&gt;: Do not run the DR Service when keys are different between production and DR. Doing so makes the Vault data on the DR Vault unusable and Vault and DR components will have to be uninstalled and reinstalled at the DR location.&lt;BR /&gt;&lt;BR /&gt;c. In order to run the ChangeServerKeys utility, you'll need to stop the "Idira Vault Disaster Recovery" service. When finished, start the "Idira Vault Disaster Recovery" service back up and make sure replication is ended successfully.&lt;/I&gt;&lt;/DIV&gt;
&lt;BR /&gt;3.&amp;nbsp; Stop the "PrivateArk Server" and "PrivateArk Database" services (ensure that the "Idira Logic Container" service is stopped as well).&lt;BR /&gt;&lt;BR /&gt;4.&amp;nbsp; Make a backup copy of the following: &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;
&lt;DIV style="margin-left: 40px;"&gt;&lt;I&gt;&lt;STRONG&gt;a&lt;/STRONG&gt;. Vault database (Safes folder. See TSParm.ini for location)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;b&lt;/STRONG&gt;. Keys folder&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;c&lt;/STRONG&gt;. Vault installation folder (%Program Files%\PrivateArk\Server) and LDAP Folders (%Program Files%\PrivateArk\Server\LDAP)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;d&lt;/STRONG&gt;. The RADIUS secret file (see dbparm.ini for location. Default is Server folder)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;e&lt;/STRONG&gt;. The database password (see dbparm.ini for location)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;f&lt;/STRONG&gt;. The emergency password (named VaultEmergency.pass)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;g&lt;/STRONG&gt;. The PKI Vault private key (see dbparm.ini for location)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;h&lt;/STRONG&gt;. The entropy file (see dbparm.ini for location)&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;
&lt;BR /&gt;5.&amp;nbsp; Insert the New Master CD into the CD ROM drive - This will be the path for the &amp;lt;New Keys Dir&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;6.&amp;nbsp; Copy the Old Master CD to the Server - This is needed to change the server keys.&lt;BR /&gt;&lt;BR /&gt;7.&amp;nbsp; Change the 'RecoveryPrvKey' parameter in the DBParm.ini to point to the location of the old private recovery key (RecPrv.key)&lt;BR /&gt;&lt;BR /&gt;8.&amp;nbsp; Start the "PrivateArk Database" service.&lt;BR /&gt;&lt;BR /&gt;9. &amp;nbsp;Run the ChangeServerKeys utility from the command line&lt;BR /&gt;&amp;nbsp;
&lt;DIV style="margin-left: 40px;"&gt;&lt;I&gt;a. The utility is located in the %Program Files%\PrivateArk\Server folder&lt;BR /&gt;&lt;BR /&gt;b. The syntax is as follows:&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 80px;"&gt;ChangeServerKeys.exe &amp;lt;New&amp;nbsp;Keys Dir&amp;gt; &amp;lt;full path of the DB Emergency Password File Name&amp;gt; &amp;lt;HSM KeySet (Optional)&amp;gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;BR /&gt;&lt;I&gt;For example:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ChangeServerKeys.exe E:\NewKeys&amp;nbsp;D:\CyberArk\Keys\VaultEmergency.pass&lt;/I&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;UL&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;If folder paths contain spaces, use double quotes for the paths&lt;/I&gt;&lt;/LI&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;Ensure that the new keys folder contains both the new recprv.key and new recpub.key&lt;/I&gt;&lt;/LI&gt;&lt;LI style="margin-left: 40px;"&gt;&lt;I&gt;If HSM is being used then provide its Key set in the command as well&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;BR /&gt;10. &amp;nbsp;If there were no errors with the command continue to step 11. If an error occurred resolve the error before continuing on.&lt;BR /&gt;&lt;BR /&gt;11. &amp;nbsp;Overwrite the old Server.key and RecPub.key under the original keys folder with the new keys from the NewKeys folder. This way you keep all the files under the old Keys folder as pointed to in DBParm.ini (essentially, replace the old Server.key and old Recpub.key with the new keys).&lt;BR /&gt;&lt;BR /&gt;12. &amp;nbsp;If keys with a different encryption algorithm were used, the following parameters must be changed in the dbparm.ini as well:
&lt;UL&gt;&lt;LI&gt;SymCipherAlg&lt;/LI&gt;&lt;LI&gt;ASymCipherAlg&lt;/LI&gt;&lt;/UL&gt;
13. &amp;nbsp;Delete the Old Master CD from the Computer&lt;BR /&gt;&lt;BR /&gt;14.&amp;nbsp; &lt;I&gt;&lt;B&gt;Important:&lt;/B&gt;&lt;/I&gt;&amp;nbsp; If a DR vault exists, perform the same procedure as described here on the DR Server. Do not proceed until the DR Vault has been re-keyed.&lt;BR /&gt;&lt;BR /&gt;15. &amp;nbsp;Start the Vault Server service (On the Main Vault and ensure that the "Idira Logic Container" service is running).&lt;BR /&gt;&lt;BR /&gt;16. &amp;nbsp;Log on using the PrivateArk Client as an administrative user to verify that the Vault is functioning normally and configured correctly.&lt;BR /&gt;&lt;BR /&gt;17. &amp;nbsp;Check that no other errors exist in the ITA log&lt;BR /&gt;&lt;BR /&gt;18.&amp;nbsp;&lt;I&gt;&lt;B&gt; &lt;/B&gt;&lt;/I&gt;If a DR exists and after the DR rekey is complete, Start the "Idira Logic Container" service and the "Idira Vault Disaster Recovery" service. Check replication in the padr.log.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;19.&amp;nbsp; If the recprv.key has been copied to the Vault file system, ensure that this key has been completely removed/deleted for security purposes.&lt;BR /&gt;&lt;BR /&gt;20. &amp;nbsp;If possible, we recommend performing this procedure on a test Vault that contains the production Vault data to identify any possible problems.&lt;BR /&gt;&lt;BR /&gt;For further information see the "ChangeServerKeys" section of the Implementations Guide.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;B&gt;For an HA Environment&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;1. &amp;nbsp;Ensure all resources are currently online on Node A&lt;BR /&gt;2. &amp;nbsp;Stop the Cluster Service on Node B using the Cluster Administration console&amp;nbsp;&lt;BR /&gt;3. &amp;nbsp;Do the steps above on Node A&lt;BR /&gt;4. &amp;nbsp;Copy the server keys directory from Node A to Node B.&lt;BR /&gt;5. &amp;nbsp;Start Cluster service on Node B using cluster administrator&lt;BR /&gt;6. &amp;nbsp;Move cluster group to Node B&lt;BR /&gt;7. &amp;nbsp;Test the Vault by logging in as Master user to verify that the Vault is functioning normally and configured correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;B&gt;Note&lt;/B&gt;&lt;/I&gt;: You can also generate the new keys by yourself using PAKeyGen Tool and PKCS#11-compliant random number generator.&lt;BR /&gt;&lt;BR /&gt;See also ChangeServerKeys section in the Implementation Guide.

&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Q:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;How do I change vault server keys?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;A:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Obtain the new keys.&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;Please contact Support to request new set of keys. Keys are physically shipped to the customer via FedEx.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpFirst" style="margin-left: 40px;"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;B&gt;Note&lt;/B&gt;:&amp;nbsp; &amp;nbsp; &amp;nbsp;On the Primary Vault and DR Vault&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;&lt;LI class="MsoListParagraphCxSpFirst" style="margin-left: 120px;"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;&lt;I&gt;Ensure that you are able to mount the new keys/CDs&amp;nbsp;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class="MsoListParagraphCxSpFirst" style="margin-left: 120px;"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;&lt;I&gt;Ensure that the RecoveryPrvKey location is pointing to the path of the current recprv.key (if not, please see Step #2 in Knowledge Article&amp;nbsp;000005496 - How to log in as the Master user)&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If a DR exists, stop the "Idira Vault Disaster Recovery" service&amp;nbsp;and the "PrivateArk Database" service (ensure that the "Idira Logic Container" service is stopped).&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The same procedure using the same set of new keys should be applied to the DR Vault after Primary is successfully re-keyed.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;b. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;B&gt;Important: &lt;/B&gt;Do not run the DR Service when keys are different between production and DR. Doing so makes the Vault data on the DR Vault unusable and Vault and DR components will have to be un-installed and re-installed at the DR location.&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;c.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In order to run the ChangeServerKeys utility, you'll need to stop the "Idira Vault Disaster Recovery" service. When finished, start the "Idira Vault Disaster Recovery" service back up and make sure replication is ended successfully.&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stop the "PrivateArk Server" and "PrivateArk&amp;nbsp;Database" Services (&lt;/FONT&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;ensure that the "Idira Logic Container" service is stopped).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Make a backup copy of the following:&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vault database (Safes folder. See TSParm.ini for location)&lt;/SPAN&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;b.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keys folder&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;c. &amp;nbsp; &amp;nbsp; &amp;nbsp;Vault installation folder (%Program Files%\PrivateArk\Server) and LDAP Folders&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;(%Program Files%\PrivateArk\Server\LDAP)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;d.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The RADIUS secret file&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;(see dbparm.ini for location. Default is Server folder)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;e. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;The database password&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;(see dbparm.ini for location)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;f. &amp;nbsp; &amp;nbsp; &amp;nbsp; The emergency password (named VaultEmergency.pass)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;g. &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;The PKI Vault private key (see dbparm.ini for location)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;h. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;The entropy file&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;(see dbparm.ini for location)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create a NewKeys folder and store the new Operator keys into it. Do not copy the Private Recovery Key to the NewKeys folder as this is a security breach.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;6.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Insert the New Master CD to the CD ROM drive - This will be the path for the &amp;lt;New Master Keys Dir&amp;gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;7.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy the Old Master CD to the Server - This is needed to change the server keys.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;8.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change the 'RecoveryPrvKey' parameter in the DBParm.ini to point to the location of the old private recovery key (RecPrv.key).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;9.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start &lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;only the&amp;nbsp;"PrivateArk&amp;nbsp;Database" Service.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;10.&amp;nbsp; Run the ChangeServerKeys utility from command line &lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The utility is is located in the %Program Files%\PrivateArk\Server folder&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;b.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The syntax is as follows:&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Courier, monospace" size="2"&gt;ChangeServerKeys.exe &amp;lt;New Keys folder&amp;gt; &amp;lt;full path of the current DB Emergency Password File Name&amp;gt; &amp;lt;HSM KeySet (Optional)&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;For example:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT face="Courier, monospace"&gt;ChangeServerKeys.exe E:\NewKeys D:\CyberArk\Keys\VaultEmergency.pass&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;If folder paths contain spaces, use double quotes for the paths&lt;BR /&gt;The new keys folder&amp;nbsp;must contain both the new recpub.key and new recprv.key&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;If HSM is being used then provide its Key set in the command as well&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;11.&amp;nbsp; If there were no errors with the command continue to step 12. If an error occurred resolve the error before continuing on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;12.&amp;nbsp; Overwrite the old Server.key and RecPub.key under the original keys folder with the new keys from the NewKeys folder. This way you keep all the files under the old Keys folder as pointed to in DBParm.ini (Essentially, replace the old Server.key and old Recpub.key with the new keys).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style="margin-left: 80px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;13.&amp;nbsp; If keys with a different encryption algorithm were used, the following parameters must be changed in the dbparm.ini as well:&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;SymCipherAlg&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;ASymCipherAlg&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;14.&amp;nbsp; Delete the Old Master CD from the Computer.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;15.&amp;nbsp; &lt;I&gt;&lt;B&gt;Important:&lt;/B&gt;&lt;/I&gt; If a DR exists, perform the same procedure as described here on the DR Server.&amp;nbsp;&amp;nbsp;Do not proceed until the next step until the DR Vault has been re-keyed.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;16.&amp;nbsp; Start the Vault Server service (On the Main Vault and ensure that the "Idira Logic Container" service is up)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;17.&amp;nbsp; Log on using the PrivateArk Client as an administrative user to verify that the Vault is functioning normally and configured correctly.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpMiddle" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;18.&amp;nbsp; Check that no other errors exist in the ITA log.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;19.&amp;nbsp; If a DR exists and after the DR rekey is complete, start the "Idira Logic Container" service&amp;nbsp;and "Idira Vault Disaster Recovery" service. Check replication in the padr.log.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;20.&amp;nbsp; If possible, it is recommends performing this procedure on a test Vault that contains the production Vault data to identify any possible problems.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast" style=""&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;21.&amp;nbsp; For further information see the "ChangeServerKeys" section of the Implementations Guide.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast" style=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast" style=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;For an HA Environment&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;1. &amp;nbsp;Ensure all resources are currently online on Node A&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;2. &amp;nbsp;Stop the Cluster Service on Node B using Cluster Administration console&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;3. &amp;nbsp;Do the steps above on Node A&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;4. &amp;nbsp;Copy the server keys directory from Node A to Node B.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;5. &amp;nbsp;Start Cluster service on Node B using cluster administrator&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;6. &amp;nbsp;Move cluster group to Node B&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;7. &amp;nbsp;Test the Vault by logging in as Master user to verify&amp;nbsp; that the Vault is functioning normally and configured correctly.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Note: You can also generate the new keys by yourself using PAKeyGen Tool and PKCS#11-compliant random number generator.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoListParagraphCxSpLast"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;See also&amp;nbsp;ChangeServerKeys section in the Implementation Guide.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2026 19:57:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/changeserverkeys-how-to-change-vault-server-keys/ta-p/1428843</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-11-05T19:57:10Z</dc:date>
    </item>
  </channel>
</rss>

