RE: SSL_CTX_use_PrivateKey_file does not work with Elliptic Curve Private Key

2014-05-19 Thread Dave Thompson
http://www.openssl.org/support/faq.html#PROG6 and if you haven't loaded error strings http://www.openssl.org/support/faq.html#PROG7 From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Darshan Mody Sent: Monday, May 19, 2014 09:13 To: openssl-users

Re: SSL_CTX_use_PrivateKey_file does not work with Elliptic Curve Private Key

2014-05-19 Thread Matt Caswell
On 19/05/14 14:12, Darshan Mody wrote: > -BEGIN EC PARAMETERS- > > -END EC PARAMETERS- > -BEGIN EC PRIVATE KEY- > > -END EC PRIVATE KEY- > > My Private key looks as above How did you generate your private key? Try deleting the EC PARAMETERS section in the fi

SSL_CTX_use_PrivateKey_file does not work with Elliptic Curve Private Key

2014-05-19 Thread Darshan Mody
Hi, I am new to openssl APIs. However I am using the current code from SIPp. Below is the code snippet for the Private Key  if ( SSL_CTX_use_PrivateKey_file(sip_trp_ssl_ctx_client,                                        tls_key_name,                                        SSL_FILETYPE_PEM ) != 1