* Ali Jawad:

> For example in the below :
>
> echo "" | openssl s_client  -CAfile ./mozilla-root.crt   -showcerts
> -connect ssl.com:443  | openssl  x509 -text
>
> will only show the issuer/dates/etc information for the first
> certificate ssl.com and not for the subsequent certificates in the
> chain.

I think you have to copy them manually from the output.

If you want to do this programmatically, you should establish a TLS
connection, use the SSL_get_peer_cert_chain function to obtain the
certificates, and use the X509_* functions to extract the data you
need.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to