Home » Articles » Convert private key to PEM

Convert private key to PEM

Tue Jan 10, 2017

Converting private keys to PEM format is very easy with the command below, make sure you replace PRIVATE_KEY_FILE with the name of the key file you want to convert.

openssl rsa -in ~/.ssh/PRIVATE_KEY_FILE -outform pem > PRIVATE_KEY_FILE.pem

  « Previous: Next: »