You can use
PEM_write_bio_X509 or PEM_write_X509 to save X509 into a FILE.
You can use PEM_read to read this PEM file when you need it.
Thanks! A couple of questions: what is the difference between PEM_write_bio_X509, PEM_write_X509 and PEM_AUX_write_X509 (the latter is what I intended to use after finding this set of functions)? Also, is it possible that the X509 pointer could contain the whole certificate chain (peer certificate as well as CA certificate of the CA who signed it)? If not, is there a way to "retrieve" this? Many thanks once again!

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to