Convert private key to PEM

January 10, 2017    Article    38 words    1 min read

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