Is there a way to retrieve the certificate from SSL_CTX?

Paul Smith paul at mad-scientist.net
Tue Mar 5 18:14:29 UTC 2019


I'm trying to write a simple function to dump the expiration date of
the certificates in my SSL_CTX cert store.

I've managed to retrieve and show the CA certificates from the
certificate store, and the certificate chain, but I can't find a method
that retrieves the certificate itself from SSL_CTX.  Is this something
that is retrievable?

E.g., I'm adding my certificate with SSL_CTX_use_certificate(); is
there a way to get it back out?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20190305/80ddec59/attachment-0001.html>


More information about the openssl-users mailing list