Skip to content

Instantly share code, notes, and snippets.

@alexclifford
Created November 14, 2014 05:40
Show Gist options
  • Save alexclifford/34f71bea9293e54acaa9 to your computer and use it in GitHub Desktop.
Save alexclifford/34f71bea9293e54acaa9 to your computer and use it in GitHub Desktop.
Compare checksum of pubic and private keys for matching modulus
openssl x509 -noout -modulus -in /etc/pki/tls/certs/www.example.com.crt | openssl md5
openssl rsa -noout -modulus -in /etc/pki/tls/private/www.example.com.key | openssl md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment