Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rivetmichael/a7bbca38371b4533229f42a75b034232 to your computer and use it in GitHub Desktop.
Save rivetmichael/a7bbca38371b4533229f42a75b034232 to your computer and use it in GitHub Desktop.
check that a key and pem / cert are valid
# run these 2 commands
openssl rsa -noout -modulus -in your.key | openssl md5
openssl x509 -noout -modulus -in your.pem | openssl md5
# compare the results, if they match, the key and pem/cert are working together !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment