Skip to content

Instantly share code, notes, and snippets.

@imRohan
Last active August 16, 2019 14:15
Embed
What would you like to do?
Convert id_rsa to pem

Convert private key

openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
chmod 600 private.pem

Convert public key

ssh-keygen -f ~/.ssh/id_rsa.pub -m 'PEM' -e > public.pem
chmod 600 public.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment