Reason for apigw.ini file on PVWA
129
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:12 PM
Symptom
The apigw.ini file on the PVWA does not rotate daily along with other credential files.
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2 PVWA
Cause
The apigw.ini credential file is an encrypted file created during the installation of PVWA and intended for an internal usage in the context of Distributed Vaults (DistV) scenario. In such a case, this credential will be automatically rotated. In case of not utilizing the DistV capability, we recommend to use the APIKeyManager by applying the procedure depicted below in order to remove the public part of the key-pair from the Vault and eventually to delete the credentials file itself from the PVWA server.
Resolution
Using APIKeyManager to revoke the key from the Vault:
1. Open command prompt an change directory to C:\CyberArk\Password Vault Web Access\Env
2. Open the file C:\CyberArk\Password Vault Web Access\CredFiles\apigw.ini and copy the Username field.
3. Run the command: ApiKeyManager.exe revoke -u <vault user with permissions to manage users> -a https://<PVWA server name>/passwordVault/api -t {user name from section #2}
4. Verify the output contains: "Revoke command executed successfully"
5. After a successful revocation you can delete the file apigw.ini from C:\CyberArk\Password Vault Web Access\CredFiles. Note that even if you don't delete it, if the revocation was successful the file can not be used any more.
Note: in case the installation folder is not in the default location you should adjust the paths accordingly.