Last active
May 18, 2021 17:29
-
-
Save matthiasbalke/02a093f5b1b92faaa81b167b31d28572 to your computer and use it in GitHub Desktop.
Get certificate infos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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