Displaying Certificate Info - dogtagpki/pki GitHub Wiki
This page describes how to display certificate and CSR information which includes:
-
serial number
-
subject DN
-
issuer DN
-
validity range
To display the content of a certificate in internal token:
$ certutil -L -d <NSS database> -n <nickname>
To display the content of a certificate in HSM:
$ certutil -L -d <NSS database> -h <token> -f <HSM password file> -n <token>:<nickname>
To display the content of a certificate in a PEM file:
$ openssl x509 -text -noout -in <filename>
To display the content of a CSR in a PEM file:
$ $ openssl req -text -noout -in <filename>