5.2.6 Displaying certificate contents (openssl.bat x509 or openssl.sh x509 command)
This subsection explains how to display the contents of a certificate file.
The following command displays the part of the certificate file that begins with -----BEGIN CERTIFICATE----- and ends with -----END CERTIFICATE----.
- Organization of this subsection
(1) Format
In Windows
openssl.bat x509 -in certificate-file -text
In UNIX
openssl.sh x509 -in certificate-file -text
(2) Parameter
-
-in certificate file
Specify the certificate file to be displayed.
(3) Usage Example
In Windows
openssl.bat x509 -in httpsd.pem -text
In UNIX
openssl.sh x509 -in httpsd.pem -text
httpsd.pem: Certificate file to be displayed