Skip to content

Instantly share code, notes, and snippets.

@vlad88sv
Created March 22, 2023 04:43
Show Gist options
  • 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