PSM - How can I create or update the credential files (credfile) for the PSM manually? (12.1 AND HIGHER)
Objective
PSM - How can I create or update the credential files (credfile) for the PSM manually?
Environment
12.1;12.2;12.6;14.2;14.4;14.6 Privileged Access Manager (PAM, self-hosted) PSM;Privileged Session Management (PSM)
Procedure
IMPORTANT NOTE: The credfile process has changed in version 12.1. If you are on version 12.0 or below, please use directions from this article instead. DO NOT use this article.
To determine your version, run the following command. The following output indicates version 12.1 or higher:
Versions under 12.1 print the following with a version below 12.1:
In order to do this, run the createcredfile utility on the PSM machine as follows:
1. Stop the PSM service via the Windows services console
2. Logon to PrivateArk Client as “Administrator” or any other user with “Manage Users” privileges in the root location.
3. Go to Menu “Tools-Administrative Tools-Users and Groups”
4. Select “PSMApp_xxx” and click “Update”. (Note: Make sure you select the right PSMAppUser. Be careful if you have more than one PSM! If there is more than one, you can check the credfile locations from the file location in step 10)
5. In the “Authentication" tab, specify a new, random password in the “Password” field, repeat it and click “OK”. Remember / write down the password set as it will be needed in a later step.
NOTE: Ensure that "Password Never Expires" is checked.
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.
7. Select “PSMGW_xxx” and click “Update”. (Note: Make sure you select the right PSMgwuser. Be careful if you have more than one PSM! If there is more than one, you can check the user.ini from the file location in step 10)
8. In the “Authentication" tab, specify a new, random password in the “Password” field, repeat it and click “OK”. Remember / write down the password set as it will be needed in a later step.
NOTE: Ensure that "Password Never Expires" is checked.
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.
10. On the PSM Server, open an administrative command line and go to “<Drive>:\Program Files (x86)\CyberArk\PSM\Vault”
11. Run the following command:
The output will look like this:
12. Run the following command:
The output will look like this:
13. Start the PSM service. If the service starts, we can assume the process completed successfully as the PSM will not start with a bad credfile.