Skip to content

Instantly share code, notes, and snippets.

@krisek
Created November 27, 2020 12:58
Show Gist options
  • Save krisek/2ba1c7e1a4e2aad0a41ba9bac7ad74e7 to your computer and use it in GitHub Desktop.
Save krisek/2ba1c7e1a4e2aad0a41ba9bac7ad74e7 to your computer and use it in GitHub Desktop.
You can check if an SSL certificate matches a Private Key by using the 3 easy commands below.
For your SSL certificate: openssl x509 –noout –modulus –in <file>.crt | openssl md5
For your RSA private key: openssl rsa –noout –modulus –in <file>.key | openssl md5
For your CSR: openssl req -noout -modulus -in <file>.csr | openssl md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment