Skip to content

Instantly share code, notes, and snippets.

@imRohan
Last active August 16, 2019 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imRohan/f5b85f9222ec89182f036f5169da4b2d to your computer and use it in GitHub Desktop.
Save imRohan/f5b85f9222ec89182f036f5169da4b2d to your computer and use it in GitHub Desktop.
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