Created
September 26, 2011 21:45
-
-
Save zircote/1243501 to your computer and use it in GitHub Desktop.
Convert a AWS PEM into a ssh pub key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -y -f private_key1.pem > public_key1.pub |
My solution to Load key invalid format was to use -i instead of -y
ssh-keygen -i -m PKCS8 -f cert.pem > cert.pub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Faishal24 , @ricsaka , maybe you need to pass the param
-m PKCS8
From the manual: