RE: SSL_CTX_use_PrivateKey_file does not work with Elliptic Curve Private Key

2014-05-19 Thread Dave Thompson
enssl-users@openssl.org Subject: SSL_CTX_use_PrivateKey_file does not work with Elliptic Curve Private Key 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_c

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