Re: Cert order in .pem format

2012-05-21 Thread KThirumal
Hi Pete, I tried to load the .p12 certs to the code directly, but it got failed at SSL_CTX_use_PrivateKey_file 1. err = SSL_CTX_use_certificate_chain_file(ctx, KeyFile); 2. SSL_CTX_set_default_passwd_cb(ctx, passwd); 3. err = SSL_CTX_use_PrivateKey_file(ctx, KeyFile, SSL_FILETYPE_PEM); 4. SS

Re: Cert order in .pem format

2012-05-17 Thread Peter Sylvester
On 05/18/2012 06:03 AM, kthiru...@inautix.co.in wrote: Team, Had a query in the certs that we load, The CA's provide our certs in .p12 format, which we need to convert to a .pem and load to SSL structure during initialization. On converting to .pem, it is in the following format, "Private Key

Cert order in .pem format

2012-05-17 Thread KThirumal
Team, Had a query in the certs that we load, The CA's provide our certs in .p12 format, which we need to convert to a .pem and load to SSL structure during initialization. On converting to .pem, it is in the following format, "Private Key, CA Certs and Domain Certificate". In our code, we use