PSMP - How can I create or update the credential files (credfile) for the PSMP manually? (12.0 or below ONLY)

PSMP - How can I create or update the credential files (credfile) for the PSMP manually? (12.0 or below ONLY)

121
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:08 PM


Objective


PSM for SSH - How can I create or update the credential files (credfile) for the PSMP manually?



Environment


10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.2

Procedure


IMPORTANT NOTE: The credfile process has changed in version 12.1. If you are on version 12.1 or higher, please use directions from this article   instead. DO NOT use this article.

To determine your version:

1. Log in to the PSMP Server
2. Locate the file "createcredfile" (directory is '/opt/CARKpsmp/bin')
2. Run the command ./createcredfile (running./createcredfile without parameters gives the version)
 

Occasionally, the PSMP accounts used for PSM for SSH functionality will no longer be in sync between the PSM for SSH server, and the CyberArk Vault, and will need to be updated.

These users typically follow the naming convention of:

PSMPApp_*
PSMPGW_*
PSMP_ADB_*

Where * is typically the hostname of the server in question.
- The username in use by the PSMP can be confirmed within the individual .cred file on the PSM for SSH server in question.
- This user must be unique to each PSM for SSH server in the environment.

In order to do this, run the createcredfile utility on the PSM for SSH machine as follows:

1. On the PSMP Server, stop the PSMP service to prevent further logon attempts; This differs by OS, and PSM for SSH version installed:

# /etc/init.d/psmpsrv stop
# service psmpsrv stop

PSM for SSH - RHEL8 installer:
# systemctl stop psmpsrv

Example:
image.png

2. Log onto the PrivateArk Client as “Administrator” or any other user with “Manage Users” privileges in the root location.
pvwacredfiles2.png

3. Go to the Menu “Tools-Administrative Tools-Users and Groups”
pvwacredfiles3.png

4. Select “PSMPAppUser” and click “Update”. (Note: Make sure you select the right PSMPAppUser. Be careful if you have more than one PSMPAppUser. You can validate the correct user in the /etc/opt/CARKpsmp/vault/psmpappuser.cred file on the PSMP server)

image.png

5. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
image.png

6. Click "Trusted Net Areas" button and make sure "State" is set to "Active". If it is set to "Inactive" click "Activate" to change the state to active. Remember / write down the password set as it will be needed in a later step.
image.png

7. Select “PSMPGWUser” and click “Update”.
(Note: Make sure you select the right PSMPGWUser. You can verify this user in the /etc/opt/CARKpsmp/vault/psmpgwuser.cred file on the PSMP server)
image.png

8. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
image.png

9. Click "Trusted Net Areas" button and make sure "State" is set to "Active". If it is set to "Inactive" click "Activate" to change the state to active. Remember / write down the password set as it will be needed in a later step.
image.png

10. Select “PSMP_ADBuser” and click “Update”.
(Note: Make sure you select the right PSMP_ADBuser. You can verify this in the the ./createcredfile /etc/opt/CARKpsmpadb/vault/psmpadbridgeserveruser.cred file on the PSMP server)
image.png

11. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
image.png

12. Click "Trusted Net Areas" button and make sure "State" is set to "Active". If it is set to "Inactive" click "Activate" to change the state to active. Remember / write down the password set as it will be needed in a later step.

image.png

13. On the PSMP Server, open a terminal and navigate to the location of the createcredfile utility;  and run the following commands to reset the password for the PSMP user accounts:

cd /opt/CARKpsmp/bin/

Note: The CreateCredFile Utility is also provided in the PSM for SSH Installation media.

./createcredfile /etc/opt/CARKpsmp/vault/psmpappuser.cred

image.png
 

./createcredfile /etc/opt/CARKpsmp/vault/psmpgwuser.cred

image.png

./createcredfile /etc/opt/CARKpsmpadb/vault/psmpadbridgeserveruser.cred

image.png

14. When prompted enter the following information:

Vault Username [mandatory] ==> <username used in the reset steps per credfile>
Vault Password (will be encrypted in credential file) ==> ******** (Note: Type in password as specified before in PrivateArk Client)

You can "Press Enter" through the rest of the parameters, and it will default to the parameter currently set in the .cred file listed in brackets [*] . Example:
Disable wait for DR synchronization before allowing password change (yes/no) [Press the ENTER key]
External Authentication Facility (LDAP/Radius/No) [No] ==> Press the ENTER key
Restrict to Application Type [optional] ==> Press the ENTER key
Restrict to Executable Path [optional] Press the ENTER key
Restrict to current machine IP (yes/no) [No] ==> Press the ENTER key
Restrict to OS User name [optional] ==> Press the ENTER key
Display Restrictions in output file (yes/no) Press the ENTER key

A success message should appear if credfile was updated successfully.


15. Start the PSMP service ; This differs by OS, and PSM for SSH version installed, 3 Examples given:

/etc/init.d/psmpsrv start
service psmpsrv start
# PSM for SSH - RHEL8 installer:
systemctl start psmpsrv

Example:
image.png


Note: The credentials for these accounts are automatically updated by the application, in the Vault, and for the relevant .cred file.



Actions
  • Print
  • Copy Link

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