Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ashishjullia/a9d14a9c7c7e301ae86b6f1cc168bddc to your computer and use it in GitHub Desktop.
Save ashishjullia/a9d14a9c7c7e301ae86b6f1cc168bddc to your computer and use it in GitHub Desktop.
Check whether .crt and .key belong to each other
# The output of both should match
openssl x509 -noout -modulus -in <>.crt | openssl md5
openssl rsa -noout -modulus -in <>.key | openssl md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment