<?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 How to resync the API credfile for the PSM in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-resync-the-api-credfile-for-the-psm/ta-p/1429350</link>
    <description>The executable 'apikeymanager.exe' is used to manage the credential file that is needed for the PSM. The file is located in your PSM installation directory, by default it is:&lt;BR /&gt;C:\Program Files (x86)\CyberArk\PSM\Vault&lt;BR /&gt;&lt;BR /&gt;The PSMApp username can be found in the psmapp.cred file, located in the same vault directory mentioned above.

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;1) Stop the service "Cyber-Ark Privileged Session Manager"&lt;BR /&gt;&lt;BR /&gt;2)&amp;nbsp;Navigate to your PSM installation directory, vault folder as described in the introduction above and open an administrative command prompt window to this folder. the commands below will be run in this CMDwindow.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 16px;"&gt;&lt;STRONG&gt;Revoke API key:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;apikeymanager.exe revoke -t &amp;lt;PSMApp username&amp;gt; -u &amp;lt;vault administrator username&amp;gt; -a "&amp;lt;&lt;A href="https://%3cPVWA_FQDN%3e/PasswordVault/api/" target="_blank"&gt;https://&amp;lt;PVWA_FQDN&amp;gt;/PasswordVault/api/&lt;/A&gt;&amp;gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyManager.exe revoke -t PSMAppxxxxxxx -u administrator -a "&lt;A href="https://xxx.xxx/passwordVault/api" target="_blank"&gt;https://xxx.xxx/passwordVault/api&lt;/A&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;(NOTE: change relevant values where required)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 16px;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Calibri;"&gt;Create a new API key:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyManager.exe add -f "&amp;lt;PSM installation folder path&amp;gt;\Vault\apigw.cred&amp;gt;" -t &amp;lt;PSMApp username&amp;gt; -u &amp;lt;vault username&amp;gt; -a "&amp;lt;&lt;U&gt;&lt;A href="https://%3cpvwa" target="_blank"&gt;https://&amp;lt;pvwa&lt;/A&gt; hostname&amp;gt;/passwordVault/api&amp;gt;&lt;/U&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyManager.exe add -f "C:\Program Files (x86)\CyberArk\PSM\Vault\apigw.cred" -t PSMAppxxxxxx -u administrator -a "&lt;A href="https://xxx.xxx/passwordVault/api" target="_blank"&gt;https://xxx.xxx/passwordVault/api&lt;/A&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;(NOTE: change relevant values where required).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 16px;"&gt;&lt;STRONG&gt;vault.ini configuration:&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;Update/Ensure the Addresses and ApiKeyPath parameters in the vault.ini file exist and are accurate. If either are missing, add them. They need to be at the bottom of the vault.ini file under a header [API], don't put these entries anywhere else.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;[API]&lt;/B&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;Addresses="&amp;lt;PVWA url&amp;gt;/api"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyPath="&amp;lt;PSM installation folder path&amp;gt;\Vault\apigw.cred"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;3) You may now start the PSM service again.&lt;BR /&gt;&lt;BR /&gt;Final note, if the need arises you can also update the existing key pair with the following command:&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyManager.exe update -f "&amp;lt;PSM installation folder path&amp;gt;\Vault\apigw.cred"&amp;gt; -t &amp;lt;PSMApp username&amp;gt; -u &amp;lt;vault username&amp;gt; -a "&lt;A href="https://%3cpvwa" target="_blank"&gt;https://&amp;lt;pvwa&lt;/A&gt; hostname&amp;gt;/passwordVault/api"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 12 Nov 2025 05:01:24 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2025-11-12T05:01:24Z</dc:date>
    <item>
      <title>How to resync the API credfile for the PSM</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-resync-the-api-credfile-for-the-psm/ta-p/1429350</link>
      <description>The executable 'apikeymanager.exe' is used to manage the credential file that is needed for the PSM. The file is located in your PSM installation directory, by default it is:&lt;BR /&gt;C:\Program Files (x86)\CyberArk\PSM\Vault&lt;BR /&gt;&lt;BR /&gt;The PSMApp username can be found in the psmapp.cred file, located in the same vault directory mentioned above.

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;1) Stop the service "Cyber-Ark Privileged Session Manager"&lt;BR /&gt;&lt;BR /&gt;2)&amp;nbsp;Navigate to your PSM installation directory, vault folder as described in the introduction above and open an administrative command prompt window to this folder. the commands below will be run in this CMDwindow.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 16px;"&gt;&lt;STRONG&gt;Revoke API key:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;apikeymanager.exe revoke -t &amp;lt;PSMApp username&amp;gt; -u &amp;lt;vault administrator username&amp;gt; -a "&amp;lt;&lt;A href="https://%3cPVWA_FQDN%3e/PasswordVault/api/" target="_blank"&gt;https://&amp;lt;PVWA_FQDN&amp;gt;/PasswordVault/api/&lt;/A&gt;&amp;gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyManager.exe revoke -t PSMAppxxxxxxx -u administrator -a "&lt;A href="https://xxx.xxx/passwordVault/api" target="_blank"&gt;https://xxx.xxx/passwordVault/api&lt;/A&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;(NOTE: change relevant values where required)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 16px;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Calibri;"&gt;Create a new API key:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyManager.exe add -f "&amp;lt;PSM installation folder path&amp;gt;\Vault\apigw.cred&amp;gt;" -t &amp;lt;PSMApp username&amp;gt; -u &amp;lt;vault username&amp;gt; -a "&amp;lt;&lt;U&gt;&lt;A href="https://%3cpvwa" target="_blank"&gt;https://&amp;lt;pvwa&lt;/A&gt; hostname&amp;gt;/passwordVault/api&amp;gt;&lt;/U&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyManager.exe add -f "C:\Program Files (x86)\CyberArk\PSM\Vault\apigw.cred" -t PSMAppxxxxxx -u administrator -a "&lt;A href="https://xxx.xxx/passwordVault/api" target="_blank"&gt;https://xxx.xxx/passwordVault/api&lt;/A&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;(NOTE: change relevant values where required).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 16px;"&gt;&lt;STRONG&gt;vault.ini configuration:&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;Update/Ensure the Addresses and ApiKeyPath parameters in the vault.ini file exist and are accurate. If either are missing, add them. They need to be at the bottom of the vault.ini file under a header [API], don't put these entries anywhere else.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;[API]&lt;/B&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;Addresses="&amp;lt;PVWA url&amp;gt;/api"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyPath="&amp;lt;PSM installation folder path&amp;gt;\Vault\apigw.cred"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;3) You may now start the PSM service again.&lt;BR /&gt;&lt;BR /&gt;Final note, if the need arises you can also update the existing key pair with the following command:&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;ApiKeyManager.exe update -f "&amp;lt;PSM installation folder path&amp;gt;\Vault\apigw.cred"&amp;gt; -t &amp;lt;PSMApp username&amp;gt; -u &amp;lt;vault username&amp;gt; -a "&lt;A href="https://%3cpvwa" target="_blank"&gt;https://&amp;lt;pvwa&lt;/A&gt; hostname&amp;gt;/passwordVault/api"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Nov 2025 05:01:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-resync-the-api-credfile-for-the-psm/ta-p/1429350</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-11-12T05:01:24Z</dc:date>
    </item>
  </channel>
</rss>

