Skip to content

Instantly share code, notes, and snippets.

@felipekm
Last active February 27, 2019 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipekm/389085c221609b5ebec53670fc789d6f to your computer and use it in GitHub Desktop.
Save felipekm/389085c221609b5ebec53670fc789d6f to your computer and use it in GitHub Desktop.
Validates that certificate matches / signs the private key
$ openssl rsa -noout -modulus -in private-key.key  2> /dev/null | openssl md5
(stdin)= 3a5a1682678d243b6b8337360b55ff10

$ openssl x509 -noout -modulus -in intermediate.crt 2> /dev/null | openssl md5
(stdin)= 3a5a1682678d243b6b8337360b55ff10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment