Skip to content

Instantly share code, notes, and snippets.

@vlad88sv
Created March 22, 2023 04:43
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 vlad88sv/7bbaf5e8c149cab870fceb68dec1cffb to your computer and use it in GitHub Desktop.
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
# 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