Skip to content

Instantly share code, notes, and snippets.

@omar-yassin
Created March 28, 2018 17:16
Show Gist options
  • Save omar-yassin/18507b62cdbed41fb6eb7f598536e3f7 to your computer and use it in GitHub Desktop.
Save omar-yassin/18507b62cdbed41fb6eb7f598536e3f7 to your computer and use it in GitHub Desktop.
SSL CERT Cheatsheet
# Get some info on cert (SAN cert details like DNS, etc..)
nmap --script ssl-cert -p 443 some.com
# Get ciphers available
nmap --script ssl-enum-ciphers -p 443 some.com
# Get info on cert file
openssl x509 -in some.crt -text -noout
# Verify key matches cert by seeing if modulus matches between the two
openssl x509 -noout -modulus -in some.crt | openssl md5
openssl rsa -noout -modulus -in some.key | openssl md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment