openssl check certificate format code example
Example 1: openssl view certificate
openssl x509 -in certificate.crt -text -noout
Example 2: openssl list certificate chain
# List all certificates in CHAINED.pem
openssl crl2pkcs7 -nocrl -certfile CHAINED.pem | openssl pkcs7 -print_certs -text -noout