Skip to content

OpenSSL

openssl

To reveal the validity of a certificate

openssl x509 -in mycert.pem -text

You may need to use eg base64 -d > mycert.pem if the cert is base64 encoded.

Similarly, if it is in DER format, use:

openssl x509 -in mycert.der -inform der -text