Skip to content

Instantly share code, notes, and snippets.

@matthiasbalke
Last active May 18, 2021 17:29
Show Gist options
  • Select an option

  • Save matthiasbalke/02a093f5b1b92faaa81b167b31d28572 to your computer and use it in GitHub Desktop.

Select an option

Save matthiasbalke/02a093f5b1b92faaa81b167b31d28572 to your computer and use it in GitHub Desktop.
Get certificate infos
openssl x509 -in Deutsche_Telekom_Root_CA_2.pem -noout -text | less
openssl x509 -in Deutsche_Telekom_Root_CA_2.pem -noout -issuer -subject| less
openssl x509 -in Deutsche_Telekom_Root_CA_2.pem -noout -serial -fingerprint -issuer -subject -dates | less
# Check an MD5 hash of the public key to ensure that it matches with what is in a CSR or private key
# source: https://www.sslshopper.com/article-most-common-openssl-commands.html
openssl x509 -noout -modulus -in certificate.crt | openssl md5
openssl rsa -noout -modulus -in privateKey.key | openssl md5
openssl req -noout -modulus -in CSR.csr | openssl md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment