On Sep 15, 2010, at 6:24 AM, Ranjith Venkatesh wrote: > Is it possible to download a certificate given the website eg: > https://domainX.com using openssl functions? > If yes, what are relevant functions and relevant code samples?
It's possible to do this using "openssl s_client -showcerts". You can see an example if you look at the source of the s_client command (apps/s_client.c) --- call SSL_get_peer_certificate() or SSL_get_peer_cert_chain(), then do what you want with the returned cert (e.g. PEM_write_bio_X509()). ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org