Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rms1000watt/5329ffa8ab563677f442be6f15569632 to your computer and use it in GitHub Desktop.
Save rms1000watt/5329ffa8ab563677f442be6f15569632 to your computer and use it in GitHub Desktop.
Validate Private Key Upload to AWS EC2 Keypairs
#!/usr/bin/env bash
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
openssl rsa -in KEY_NAME.pem -pubout -outform DER | openssl md5 -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment