https with client certs

2006-11-27 Thread Torsten Curdt
Hi there, I am trying to add client certificate support to Daquiri which is using openssl for https connections already. http://omniti.com/~jesus/projects/ So before creating the SSL with SSL_new I am loading our client certificate CA's certificate chain into the context with: int

Re: https with client certs

2006-11-27 Thread Marek Marcola
Hello, I am trying to add client certificate support to Daquiri which is using openssl for https connections already. http://omniti.com/~jesus/projects/ So before creating the SSL with SSL_new I am loading our client certificate CA's certificate chain into the context with: int

Re: https with client certs

2006-11-27 Thread Torsten Curdt
Try SSL_CTX_use_PrivateKey_file() to load private key (and I suggest SSL_CTX_check_private_key() to check private key to certificate compatibility). Well, I thought for PEM SSL_CTX_use_certificate_chain_file() would also load the private key (thought I read that somewhere) ...anway. When I use

Re: https with client certs

2006-11-27 Thread Dr. Stephen Henson
On Mon, Nov 27, 2006, Torsten Curdt wrote: ssl_err = SSL_connect(hr-ssl); if (ssl_err 0) { error_printf(Hard error %d on SSL_connect for fd %d\n, ssl_err, event-fd); I always get a -1 return code and the password callback is not getting called at all

Re: https with client certs

2006-11-27 Thread Torsten Curdt
Thanks for the help guys ...the last thing that was missing was actually an infrastructure problem :) So - working now :) cheers -- Torsten __ OpenSSL Project http://www.openssl.org User Support