Hi Pierre,
If you are using this certificate chain for an SSL connection, use SSL_CTX_use_certificate_chain_file which does precisely what you are asking. If you are just looking for a way to load this chain for other uses, the source code for that function should help you out.
take a look at the man page: http://www.openssl.org/docs/ssl/SSL_CTX_use_certificate.html - Ariel delcour.pierre wrote:
Hello everyone, I have to load a chain of x509v3 certificates which is only one file, like this one (i cut it): -----BEGIN CERTIFICATE----- MIIEjjC[...]7DjKlgcOcx -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIEfzC[...]ds0pfH -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIEeT[...]AxQv6oN -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIEdjC[...]1zwDx -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIEcjC[...]WziILI= -----END CERTIFICATE----- So, how can i load it thanks to openssl ? ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
-- - Ariel Salomon / Senior Software Engineer Real-Time Innovations (RTI) / www.rti.com 408 990-7439 / [EMAIL PROTECTED] RTI - The Real-Time Middleware Experts ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]