openssl: Show all certificates of a certificate bundle file

Hi,

the x509 option of openssl does only use the first certificate in a file.

To show all certificates in a bundle file use the crl2pkcs7 option. This is usually used to pack a crl and a bundle of certificates in a pkcs7 container but the crl can be omitted and a list of certificates in a pkcs7 container is created. This list could be shown with the pkcs7 option.

michael@debdev ~ # openssl crl2pkcs7 -nocrl -certfile myCertificateBundle.pem | openssl pkcs7 -print_certs -text -noout

Michael

Leave a Reply Cancel reply