CPM - CACPM688E PuttyGen execution failed. Reason: puttygen: error loading

CPM - CACPM688E PuttyGen execution failed. Reason: puttygen: error loading

175
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:55 PM


Symptom


When attempting to rotate the key ,we ran into the following error in pm.log and no debug log generated.CACPM688E PuttyGen execution failed. Reason: puttygen: error loading `.\tmp\keygen_in- tmp': unrecognised key type

 



Environment


Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) Central Policy Manager (CPM) SSH Key Management

Cause


OpenSSH 7.8 and above, the private key file will start with the following if you run this command ssh-keygen -t rsa -b 4096 : 


-----BEGIN OPENSSH PRIVATE KEY-----

Instead of

----BEGIN RSA PRIVATE KEY-----

OpenSSH format is not supported.

The above scenario assumes you  have SSH Version  7.8 and above,  you are running the default command. 



Need to use the following  command when creating the SSH key pair  so the key format will begin with RSA instead of OPENSSH

ssh-keygen -m PEM -t rsa -b 4096

 

 

 



Resolution


Need to change the Key Formats
From: -----BEGIN OPENSSH PRIVATE KEY-----  Not support by CyberArk
To: -----BEGIN RSA PRIVATE KEY-----  Supported. 

There are two options to convert the key to RSA

1.      Using puttygen

-         Click on Key => Parameters for saving Key files => PPK file version => Select 2 instead of 3.

-         Open Puttygen

-         Click the load button.

-         Browse select the file with this format: -----BEGIN OPENSSH PRIVATE KEY-----

-         Select Conversion tab and click on Export OpenSSH Key

2.      Convert the SSH Key format using ssh-keygen utility.  

Using the following command in Unix like machines.  

ssh-keygen -p -m PEM -b 2048 -f /path/openssh_key

Once that’s done store the key in the vault and attempt to rotate the key.

 

For details on the supported formats: 
https://docs.cyberark.com/pam-self-hosted/Latest/en/Content/SSHKM/Managing%20SSH%20Keys.htm



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000zBaCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail