PSMP - How can I create or update the credential files (credfile) for the PSMP manually? (12.1 and above ONLY)

PSMP - How can I create or update the credential files (credfile) for the PSMP manually? (12.1 and above ONLY)

176
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:59 PM


Objective


PSMP - How can I create or update the credential files (credfile) for the PSMP manually? (12.1 and above ONLY)

Environment


Privileged Access Manager (PAM, self-hosted) PSMP

Procedure


IMPORTANT NOTE: This article is for version 12.1 ONLY. If you are on version 12.0 or below, please follow this article instead

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)
 

For version 12.1 or above:

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:
PSMP1.jpg
2. Log onto the PrivateArk Client as “Administrator” or any other user with “Manage Users” privileges in the root location.
PSMP2.jpg
3. Go to the Menu “Tools-Administrative Tools-Users and Groups”
PSMP3.jpg
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)
PSMP4.jpg
5. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
PSMP5.jpg
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.
PSMP6.jpg
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)
PSMP7.jpg
8. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
PSMP8.jpg
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.
PSMP9.jpg
10. Select “PSMP_ADBuser” and click “Update”.
(Note: Make sure you select the right PSMP_ADBuser. You can verify this in the the /etc/opt/CARKpsmp/vault/psmpgwuser.cred file on the PSMP server)
PSMP10.jpg
11. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
PSMP11.jpg
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.
PSMP12.jpg
13. On the PSMP Server:

a) Stop the PSM for SSH Server service

b) Please note the .cred file location difference between the different users

- For appuser and gwuser = /etc/opt/CARKpsmp/vault

- For adbuser = /etc/opt/CARKpsmpadb/vault

c) Use the CreateCredFile utility to create new credentials files for appuser, gwuser, and adbuser.

The CreateCredFile utility is found in:

1) /opt/CARKpsmp/bin/ -- This is used in the examples below

2) CreateCredFile Utility is also provided in the PSM for SSH Installation media.(typically provided as a .zip file)

Examples:

-- Update the values in '<,>' brackets below

*For version 12.1 and earlier:
CreateCredFile <filename> Password –Username <username> -Password <password>

*For version 12.1.1 and later:
For appuser: 
cd /etc/opt/CARKpsmp/vault
/opt/CARKpsmp/bin/createcredfile psmpappuser.cred Password -Username <appusername> -Password <app_user_password> -OSUsername root -AppType PSMPApp -ExePath /opt/CARKpsmp/bin/psmpserver  -EntropyFile

For gwuser:
cd /etc/opt/CARKpsmp/vault
/opt/CARKpsmp/bin/createcredfile psmpgwuser.cred Password -Username <gwusername> -Password <gw_user_password> -OSUsername root -AppType PSMPApp -ExePath /opt/CARKpsmp/bin/psmpserver -EntropyFile

For adbuser:
cd /etc/opt/CARKpsmpadb/vault
/opt/CARKpsmp/bin/createcredfile psmpadbridgeserveruser.cred Password -Username <appusername> -Password <adb_user_password> -OSUsername root -AppType PSMPApp -ExePath /opt/CARKpsmpadb/bin/psmpadbserver -EntropyFile

Note: If the password includes any special characters add single quotes around it; This is so the OS Shell can correctly parse the syntax. example:

-Password '<app_user_password>'


14. Start the PSMP Service

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

PSM for SSH - RHEL8 installer:
# systemctl start psmpsrv


Actions
  • Print
  • Copy Link

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