Certificate :: Read it from Command Line

Blog Post created by Patrick-Dussault Employee on Jan 4, 2016

If you need to read a certificate that you have produced from the command line, you can use this :


# openssl x509 -in cert.crt -text -noout


The certificate should have several lines in the data field, each ending with a carriage return char.

Under Linux, you can see the line ending character by :


# cat –A myservercert.pem