PSM - How can I create or update the credential files (credfile) for the PSM manually? (12.1 AND HIGHER)

PSM - How can I create or update the credential files (credfile) for the PSM manually? (12.1 AND HIGHER)

215
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:12 PM


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:

image.png

Versions under 12.1 print the following with a version below 12.1:
image.png

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
psmcredfile1.png

2. Logon to PrivateArk Client as “Administrator” or any other user with “Manage Users” privileges in the root location.
psmcredfile2.jpg
3. Go to Menu “Tools-Administrative Tools-Users and Groups”
psmcredfile3.jpg
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)
psmcredfile4.jpg
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.
psmcredfile5.jpg
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. 
psmcredfile6.jpg
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)
psmcredfile7.jpg
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.
psmcredfile5.jpg
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. 
psmcredfile6.jpg

10. On the PSM Server, open an administrative command line and go to “<Drive>:\Program Files (x86)\CyberArk\PSM\Vault”
psmcredfile10.jpg

11. Run the following command:

CreateCredFile.exe psmapp.cred Password /Username {username} /Password {password} /AppType PSMApp /DPAPIMachineProtection /EntropyFile /ExePath "{capsm.exe file path}"


The output will look like this:




12. Run the following command:

CreateCredFile.exe psmgw.cred Password /Username {username} /Password {password} /AppType PSMApp /DPAPIMachineProtection /EntropyFile /ExePath "{capsm.exe file path}"

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.
psmcredfile14.jpg



Actions
  • Print
  • Copy Link

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