G.4 Displaying certificate contents (openssl.bat 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----.
Format
openssl.bat x509 -in certificate-file -text
Operand
- -in certificate-file
-
Specify the certificate file to be displayed.
Example
To display the certificate file httpsd.pem, specify as follows:
openssl.bat x509 -in httpsd.pem -text