Created
September 10, 2015 20:30
-
-
Save jdye64/28c626b3586f2fa80629 to your computer and use it in GitHub Desktop.
Extract OpenSSH Public key from Google Cloud p12 file
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
cat filename.p12 | openssl pkcs12 -nodes -nocerts -passin pass:notasecret | openssl rsa > secret.pem | |
chmod 600 secret.pem | |
ssh-keygen -y -f secret.pem > OpenSSHPublicKey.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment