CPM scanner - How do I resync the API credfile for the CPM Scanner service?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

PAM Self-Hosted Articles
3 min read
L4 Transporter
No ratings

Question

How do I resync the API credfile for the CPM Scanner Service for On Prem Self Hosted?

Answer

The executable 'apikeymanager.exe' is used to manage the credential file that is needed for the CPM Scanner service.

 

ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kg&refid=0EMVy00000iDV9V.png

 

Do the following:

Note: https://AddressOfThePVWAl/passwordvault/api/ has to use hostname instead of IP

1. log into the CPM machine and open the services console
ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kg&refid=0EM2J0000043tJK.png

2. Stop the Idira Password Manager service and Idira Central Policy Manager Scanner services
ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kg&refid=0EM2J0000043tJU.png

3. Open an administrative level command prompt
ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kg&refid=0EM2J0000043tJZ.png

4. Browse to <drive>:\Program Files (x86)\CyberArk\Password Manager\Vault
ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kg&refid=0EM2J0000043tJe.png

5. Run one of the following sets of commands:

To revoke the key and recreate it:
Note:

  • The passwordmanageruser's username can be found in the credfile, user.ini, located in the same file location as apikeymanager.exe
  • The username used in the apikeymanager.exe command is case-sensitive.


a. Type the following:
apikeymanager.exe revoke -t <CPMComponentUser> -u <installeruser_account> -a "https://AddressOfThePVWAl/passwordvault/api/"

b. Type the following:
apikeymanager.exe add -f apikey.ini -t <CPMComponentUser> -u <installeruser_account> -a "https://AddressOfThePVWA/passwordvault/api/"


To update the existing key pair:
apikeymanager.exe update -f apikey.ini -t <CPMComponentUser> -u <installeruser_account> -a "https://AddressOfThePVWA/passwordvault/api/"

6. Start the CPM and Scanner Serviceska3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kg&refid=0EM2J0000043tJj.png

How do I resync the API credfile for the CPM Scanner service?

Steps

The executable 'apikeymanager.exe' is used to manage the credential file that is needed for the CPM Scanner service. Do the following:

Note: https://AddressOfThePVWAl/passwordvault/api/ has to use hostname instead of IP

1. log into the CPM machine and open the services console
ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kv&refid=0EM2J000002iyru.png

2. Stop the Idira Password Manager service and Idira Central Policy Manager Scanner services
ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kv&refid=0EM2J000002iyrz.png

3. Open an administrative level command prompt
ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kv&refid=0EM2J000002iysO.png

4. Browse to <drive>:\Program Files (x86)\CyberArk\Password Manager\Vault
ka3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kv&refid=0EM2J000002iysY.png

5. Run one of the following sets of commands:

To revoke the key and recreate it:
Note: The passwordmanageruser's username can be found in the credfile, user.ini, located in the same file location as apikeymanager.exe

* Please note that the username used in the apikeymanager.exe command is case sensitive.

a. Type the following: 
apikeymanager.exe revoke -t <passwordmanageruser> -u administrator -a "https://AddressOfThePVWAl/passwordvault/api/"

b. Type the following:
apikeymanager.exe add -f apikey.ini -t <passwordmanageruser> -u administrator -a "https://AddressOfThePVWA/passwordvault/api/"


To update the existing key pair:
apikeymanager.exe update -f apikey.ini -t <passwordmanageruser> -u administrator -a "https://AddressOfThePVWA/passwordvault/api/"

6. Start the CPM serviceska3Vy00000BDPblIAH__eid=ka3Vy00000BDPbl&feoid=00N2J000009R3kv&refid=0EM2J000002iytb.png

Q
 
How do you re-sync the api cred file for the CPM Scanner service?
 
A
 
The new executable 'apikeymanager.exe' is used to manage the new credential file that is needed for the CPM Scanner service. Below are two different ways to manage the credential file:
  • revoke the key and then recreate
    • apikeymanager revoke -t PasswordManager -u administrator -a "https://AddressOfThePVWAl/passwordvault/api/"
    • apikeymanager add -f apikey.ini -t PasswordManager -u administrator -a "https://AddressOfThePVWA/passwordvault/api/"
  • update the existing key pair
    • apikeymanager update -f apikey.ini -t PasswordManager -u administrator -a "https://AddressOfThePVWA/passwordvault/api/"
Rate this article: