view-certificate(1)

NAME
view-certificate - Displays an X.509 certificate in PEM or DER format

SYNOPSIS
view-certificate certificate_file [...]
view-certificate [-h | - -help]

DESCRIPTION
view-certificate displays important details on an X.509 certificate, including:

* Common Name (CN),

* Validity Range,

* Key Usage and Extended Usage,

* Basic Constraints,

* Subject Alternative Name (SAN),

* Subject Key Identifier (SKID) and Authority Key Identifier (AKID), as well as

* the contained certificate chain (from the certificate up to the root CA).

ARGUMENTS
The following options are available:

certificate_file [...]
    Specifies one ore more certificate files to be displayed. "-" is a shortcut for /dev/stdin, i.e. reading the certificate from standard input.

-h | - -help
    Prints command-line parameters.

EXAMPLES

view-certificate My-CA-Certificate.crt My-Server-Certificate.crt

view-certificate /usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt

cat /usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt | view-certificate -

view-certificate www-nntb-no-chain.pem

view-certificate --help

view-certificate -h