Skip to content

Instantly share code, notes, and snippets.

@GitarPlayer
Created March 4, 2022 08:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GitarPlayer/39a554e08af81184ac9a18618ab9ac63 to your computer and use it in GitHub Desktop.
Save GitarPlayer/39a554e08af81184ac9a18618ab9ac63 to your computer and use it in GitHub Desktop.
verify tls key and cert match
openssl x509 -noout -modulus -in server.crt| openssl md5
openssl rsa -noout -modulus -in server.key| openssl md5
# really cool feature of openssl
openssl s_server -cert server.crt -key server.key
# if the keys don't match you will get an error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment