Created
March 22, 2023 04:43
-
-
Save vlad88sv/7bbaf5e8c149cab870fceb68dec1cffb to your computer and use it in GitHub Desktop.
Extract or export public key from AWS EC2 ED25519 pem or cer 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
# Important: backup all your keys first | |
openssl rsa -in key.cer -pubout -out key.pem | |
ssh-keygen -i -m PKCS8 -f key.pem > key.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment