PSMP - How can I create or update the credential files (credfile) for the PSMP manually? (12.0 or below ONLY)
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:
# service psmpsrv stop
PSM for SSH - RHEL8 installer:
# systemctl stop psmpsrv
Example:
2. Log onto the PrivateArk Client as “Administrator” or any other user with “Manage Users” privileges in the root location.
3. Go to the Menu “Tools-Administrative Tools-Users and Groups”
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)
5. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
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.
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)
8. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
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.
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)
11. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”.
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.
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
14. When prompted enter the following information:
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:
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:
service psmpsrv start
# PSM for SSH - RHEL8 installer:
systemctl start psmpsrv
Example:
Note: The credentials for these accounts are automatically updated by the application, in the Vault, and for the relevant .cred file.