couldn't find the key store file
search cancel

couldn't find the key store file


Article ID: 204078


Updated On:


CA Privileged Access Manager (PAM)


While executing the CLI command

capam_command capam=x.x.x.x adminUserID=super cmdName=getErrorCodes

the following error is appearing

'couldn't find the key store file'

Initially, a Certificate was generated and added successfully to the keystore in a Windows 10 from which the connection was being made, and it was possible to run CLI commands.

Afterwards some changes were made to the Subject Alternate Name (SAN) of the CSR file so that the certificated had to be modified in the present box. Following this, it stopped working and it started throwing error 'couldn't find the key store file'. However, from other devices set up according to the documentation

the CLI commands started working


Issue was on PAM 3.4.1 but applicable to all versions.



The cause of the issue was that the environment variable PAM_CLI32 had a space at the end, highlighted below:



Edited the environment variable CAPAM_CLI. Removed the space at the end. 

Command below execute successfully.

capam_command capam=x.x.x.x adminUserID=super cmdName=getErrorCodes


Additional Information

Another similar issue discussed with the folder name containing the space.