howtos:how_do_i_extract_information_from_a_certificate
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:how_do_i_extract_information_from_a_certificate [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Using the -text option will give you the full breadth of information. | ||
+ | < | ||
+ | openssl x509 -text -in cert.pem | ||
+ | </ | ||
+ | |||
+ | Other options will provide more targeted sets of data. | ||
+ | |||
+ | < | ||
+ | # who issued the cert? | ||
+ | openssl x509 -noout -in cert.pem -issuer | ||
+ | |||
+ | |||
+ | # to whom was it issued? | ||
+ | openssl x509 -noout -in cert.pem -subject | ||
+ | |||
+ | # for what dates is it valid? | ||
+ | openssl x509 -noout -in cert.pem -dates | ||
+ | |||
+ | # the above, all at once | ||
+ | openssl x509 -noout -in cert.pem -issuer -subject -dates | ||
+ | |||
+ | # what is its hash value? | ||
+ | openssl x509 -noout -in cert.pem -hash | ||
+ | |||
+ | # what is its MD5 fingerprint? | ||
+ | openssl x509 -noout -in cert.pem -fingerprint | ||
+ | </ |
howtos/how_do_i_extract_information_from_a_certificate.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1