- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-30-2020 09:45 AM
Hi all,
I've submitted a ticket on this, but support hasn't replied in two days so I thought I'd ask the question here. I'm getting an error in the CACPMScanner.log as shown below.
[CPMSCNR008E] Failed to communicate with the PVWA server. The API Key file ‘apikey.ini’ is invalid or corrupted. Use the apikeymanager utility to generate a new API key, store it in the CPM installation folder, then start the service again. ---> System.Security.Cryptography.CryptographicException: CASGS046E Failed to get the key algorithm from credentials file, Reason(Failed getting private key from file). (-2180046)
I think I have the right syntax to recreate the apikey.ini file, but I didn't want to break something if I run the command below. Is there any risk to doing this? Mainly I just don't want to write a new key to the Vault that could cause issues with another component like CPM or PSM.
ApiKeyManager.exe update -f "C:\CyberArkCreds\user.cred" -t PasswordManager -u Administrator -a "https://pvwa.domain.com/PasswordVault/api/"
Any help is appreciated. Thanks!
12-30-2020 12:52 PM
As far as I know there willnot be any issue of executing this command..make sure you've the correct SSL certificate in the CPM Server and port required port is opened betweeen PVWA and CPM.
When I faced similar issues, I've revoked it and then re-added again..
Good Luck!!
12-30-2020 05:11 PM
Same as recreating the cred-File, pretty much. Should not be a problem.
12-31-2020 07:41 AM
Thanks all. After submitting a second ticket support get back to me and I was able to fix the problem. As the error indicated, I had to recreate the apikey.ini file following instructions from the article below. I was unable to update as I originally thought, so I removed the old key and added a new key.
How do you re-sync the api cred file for the CPM Scanner service (from v10.7) (force.com)
Thanks for your replies.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

