PVWA – How can I create or update the credential files (credfile) for the PVWA manually? (12.1.0 or below ONLY)
Question
How can I create / update credential files for the PVWA application manually?
Environment
v4.6;v5.0;v5.5;v6.0;v7.0;v7.1;v7.2;v8.0;8.1;v8.2;v8.5;v8.6;v9.0;v9.1;v9.2;9.3;9.5;9.6;9.7;9.8;9.9;9.9.5;9.10;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;21.1;12.1
Answer
IMPORTANT NOTE: The credfile process has changed in version 12.1.1. If you are on version 12.1.1 or higher, 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.1 or higher:
Versions under 12.1.1 print the following with a version below 12.1.0:
In order to do this, run the createcredfile utility on the PVWA machine as follows:
For version 12.1.0 or below
1. On the PVWA Server, stop IIS

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 “PVWAAppUser” and click “Update”. (Note: Make sure you select the right PVWAAppUser. Be careful if you have more than one PVWAAppUser, e.g. PVWAAppUser1 and select the correct one by checking C:\CyberArk\Password Vault Web Access\credfiles > appuser.ini and gwuser.ini!)

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 “PVWAGWUser” and click “Update”.
(Note: Make sure you select the right PVWAGWUser. Be careful if you have more than one PVWAGWUser, e.g. PVWAGWUser1 and select the correct one!)

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. On the PVWA Server, open an administrative command line and go to “C:\CyberArk\Password Vault Web Access\Env”.

11. Run “CreateCredFile.exe appuser.ini”
12. When prompted enter the following information:

13. Run “CreateCredFile.exe gwuser.ini”
14. When prompted enter the following information:

15. Move the newly created “appuser.ini” and “gwuser.ini” to “C:\CyberArk\Password Vault Web Access\CredFiles”


16. Make sure to grant "Modify" permissions to user "Network Service" on “appuser.ini” and “gwuser.ini” using Windows Explorer.
17. Start IIS (and its dependent services) on the PVWA machine.

18. Make sure you can access the PVWA using your web browser.

Note: The passwords for these users are automatically changed by the application in the Vault and the credential files are automatically updated with the new passwords each time they change.
Additional Information
Details
Q:
How can I create / update credential files for the PVWA application manually?
A:
You need to run the createcredfile utility on the PVWA machine as follows:
1. Logon to PrivateArk Client as “Administrator” or any other user with “Manage Users” privileges in the root location.
2. Go to Menu “Tools-Administrative Tools-Users Groups”
3. Select “PVWAAppUser” and click “Update”. (Note: Make sure you select the right PVWAAppUser. Be careful if you have more than one PVWAAppUser, e.g. PVWAAppUser1 and select the correct one by checking C:\CyberArk\Password Vault Web Access\credfiles > appuser.ini and gwuser.ini!)
4. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”. Then 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.
5. Select “PVWAGWUser” and click “Update”.
(Note: Make sure you select the right PVWAGWUser. Be careful if you have more than one PVWAGWUser, e.g. PVWAGWUser1 and select the correct one!)
6. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”. Then 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. Remember / write down the passwords set for PVWAAppUser and PVWAGWUser!
8. On the PVWA Server stop IIS, open a command line and go to “C:\CyberArk\Password Vault Web Access\Env”.
9. Run “CreateCredFile.exe appuser.ini”
10. When prompted enter the following information:
Vault Username [mandatory] ==> PVWAAppUser
Vault Password (will be encrypted in credential file) ==> ******** (Note: Type in password as specified before in PrivateArk Client)
Disable wait for DR synchronization before allowing password change (yes/no) [No] ==> No (V5.5 and later only)
External Authentication Facility (LDAP/Radius/No) [No] ==> No
Restrict to Application Type [optional] ==> PVWAAPP
Restrict to Executable Path [optional] ==> C:\windows\system32\inetsrv\w3wp.exe (On Windows 2008 enter C:\Windows\SysWOW64\Inetsrv\w3wp.exe)
Restrict to current machine IP (yes/no) [No] ==> Yes
Restrict to OS User name [optional] ==> <Enter> (Note: Do *not* specify a value here)
Display Restrictions in output file (yes/no) [No] ==> No
Use Operating System Protected Storage for credentials file secret (Machine/User/No) [No] ==> Machine
You should see a message “Command ended successfully”.
11. Run “CreateCredFile.exe gwuser.ini”
12. When prompted enter the following information:
Vault Username [mandatory] ==> PVWAGWUser
Vault Password (will be encrypted in credential file) ==> ******** (Note: Type in password as specified before in PrivateArk Client)
Disable wait for DR synchronization before allowing password change (yes/no) [No] ==> No (V5.5 and later only)
External Authentication Facility (LDAP/Radius/No) [No] ==> No
Restrict to Application Type [optional] ==> PVWAAPP
Restrict to Executable Path [optional] ==> C:\windows\system32\inetsrv\w3wp.exe (On Windows 2008 enter C:\Windows\SysWOW64\Inetsrv\w3wp.exe)
Restrict to current machine IP (yes/no) [No] ==> Yes
Restrict to OS User name [optional] ==> <Enter> (Note: Do *not* specify a value here)
Display Restrictions in output file (yes/no) [No] ==> No
Use Operating System Protected Storage for credentials file secret (Machine/User/No) [No] ==> Machine
You should see a message “Command ended successfully”.
13. Move the newly created “appuser.ini” and “gwuser.ini” to “C:\CyberArk\Password Vault Web Access\CredFiles”
14. Make sure to grant "Modify" permissions to user "Network Service" on “appuser.ini” and “gwuser.ini” using Windows Explorer.
15. Start IIS (and its dependent services) on the PVWA machine.
16. Make sure you can access the PVWA using your web browser.
Note: The passwords for these users are automatically changed by the application in the Vault and the credential files are automatically updated with the new passwords each time they change.