Does recreating API Key have potential to cause issues?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does recreating API Key have potential to cause issues?

L1 Bithead

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!

3 REPLIES 3

L5 Sessionator

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!!

L7 Applicator

Same as recreating the cred-File, pretty much. Should not be a problem.

L1 Bithead

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.

  • 1760 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!