Skip to content

Instantly share code, notes, and snippets.

@ferrao
Last active July 19, 2019 09:03
Show Gist options
  • Save ferrao/13c5fa5f956277a903fc3393aebba79e to your computer and use it in GitHub Desktop.
Save ferrao/13c5fa5f956277a903fc3393aebba79e to your computer and use it in GitHub Desktop.
AWS Key Pair verification
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#verify-key-pair-fingerprints
openssl rsa -in ~/.ssh/privatekey -pubout -outform DER | openssl md5 -c
openssl pkcs8 -in path_to_private_key -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment