RE: SSL_CTX_use_PrivateKey_file

2014-05-25 Thread Mody, Darshan (Darshan)
...@openssl.org] On Behalf Of Jeffrey Walton Sent: Sunday, May 25, 2014 9:28 PM To: OpenSSL Users List Subject: Re: SSL_CTX_use_PrivateKey_file On Sun, May 25, 2014 at 11:39 AM, Viktor Dukhovni wrote: > On Sun, May 25, 2014 at 11:28:04AM -0400, Jeffrey Walton wrote: > >> >

Re: SSL_CTX_use_PrivateKey_file

2014-05-25 Thread Jeffrey Walton
On Sun, May 25, 2014 at 11:39 AM, Viktor Dukhovni wrote: > On Sun, May 25, 2014 at 11:28:04AM -0400, Jeffrey Walton wrote: > >> > sip_trp_ssl_ctx = SSL_CTX_new( TLSv1_method() ); >> > if ( sip_trp_ssl_ctx == NULL ) { >> > ERROR("FI_init_ssl_context: SSL_CTX_new with TLSv1_method fa

Re: SSL_CTX_use_PrivateKey_file

2014-05-25 Thread Matt Caswell
On 25/05/14 14:40, Mody, Darshan (Darshan) wrote: > I use below command > > openssl ecparam -out key.pem -name prime256v1 -genkey. I am using another 3rd > Party tool SIPp. Below is the method that sets the SSL CTX > Whilst I don't think its the cause of your problem, I would suggest adding

Re: SSL_CTX_use_PrivateKey_file

2014-05-25 Thread Viktor Dukhovni
On Sun, May 25, 2014 at 11:28:04AM -0400, Jeffrey Walton wrote: > > sip_trp_ssl_ctx = SSL_CTX_new( TLSv1_method() ); > > if ( sip_trp_ssl_ctx == NULL ) { > > ERROR("FI_init_ssl_context: SSL_CTX_new with TLSv1_method failed"); > > return SSL_INIT_ERROR; > > } > > Well,

Re: SSL_CTX_use_PrivateKey_file

2014-05-25 Thread Jeffrey Walton
OR("FI_init_ssl_context: SSL_CTX_use_PrivateKey_file (client) > failed"); > return SSL_INIT_ERROR; > } > > return SSL_INIT_NORMAL; > } > > -Original Message- > From: owner-openssl-us...@openssl.org > [mailto:owner-openssl-us...@openssl.org] On

RE: SSL_CTX_use_PrivateKey_file

2014-05-25 Thread Mody, Darshan (Darshan)
@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Matt Caswell Sent: Sunday, May 25, 2014 6:31 PM To: openssl-users@openssl.org Subject: Re: SSL_CTX_use_PrivateKey_file On 25/05/14 13:11, Mody, Darshan (Darshan) wrote: > Hi, > > > > When I try to read the

Re: SSL_CTX_use_PrivateKey_file

2014-05-25 Thread Matt Caswell
On 25/05/14 13:11, Mody, Darshan (Darshan) wrote: > Hi, > > > > When I try to read the EC Private Key file I get an error from the > openssl. > > > > Is there another way to use the Elliptic curved Private key. Please note > that I generate the Public and Private keys via the command lin

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

Re: SSL_CTX_use_PrivateKey_file

2003-01-08 Thread Lutz Jaenicke
On Wed, Jan 08, 2003 at 09:40:58AM -0800, Fisk, Kevin wrote: > Okay. Right now, I call SSL_CTX_use_PrivateKey_file with the parameter > SSL_FILETYPE_PEM. What do I pass for the type PK (first parameter) to > pass this. Do I need to convert the PEM file before it can be passed as > an ASN.1 certi

RE: SSL_CTX_use_PrivateKey_file

2003-01-08 Thread Fisk, Kevin
Okay. Right now, I call SSL_CTX_use_PrivateKey_file with the parameter SSL_FILETYPE_PEM. What do I pass for the type PK (first parameter) to pass this. Do I need to convert the PEM file before it can be passed as an ASN.1 certificate? I tried only passing the private key portion as a string, th

Re: SSL_CTX_use_PrivateKey_file

2003-01-08 Thread Lutz Jaenicke
On Tue, Jan 07, 2003 at 04:06:34PM -0800, Fisk, Kevin wrote: > Is there any way to pass a string with the private key, instead of reading it from a >file, such as read it from a database and pass it to the function, without writing it >to disk? Please look into SSL_CTX_use_PrivateKey_ASN1(), whi

Re: SSL_CTX_use_PrivateKey_file()

2002-04-02 Thread Ales Privetivy
Try /* set callback for passphrases on private key files */ SSL_CTX_set_default_passwd_cb( context, pem_passwd_cb); before calling SSL_CTX_use_PrivateKey_file(), where pem_passwd_cb could be for non-crypted private key files /* callback for private key files passphrase */ static int pem_passwd

Re: SSL_CTX_use_PrivateKey_file() problem

2000-06-26 Thread raggi
        X509_free (server_cert);                 }         }         catch(Exception* e)         {                 disconnect();                 printf("Exception caught in connectToHost\n");                 printf("%s\n", e->getMsg());                 throw e;         }         return m_oSocket

Re: SSL_CTX_use_PrivateKey_file() problem

2000-06-23 Thread Dr Stephen Henson
[EMAIL PROTECTED] wrote: > > > Now all I have to do is to find a way to place the correct salt into > the function. Because of this error message: > "474:error:06065064:digital envelope routines:EVP_DecryptFinal:bad > decrypt:.\cryp > to\evp\evp_enc.c:243:" > > This seems not to be doing the tr

Re: SSL_CTX_use_PrivateKey_file() problem

2000-06-23 Thread raggi
MAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 23.06.2000 13:56 Please respond to openssl-users                 To:        [EMAIL PROTECTED]         cc:                 Subject:        Re: SSL_CTX_use_PrivateKey_file() problem [EMAIL PROTECTED] wrote: > > Hello everybody > > I am ne

Re: SSL_CTX_use_PrivateKey_file() problem

2000-06-23 Thread Dr Stephen Henson
[EMAIL PROTECTED] wrote: > > Hello everybody > > I am new to working with openssl so this may seem like a stupid > question, but I just can't seem to get past this problem. > > The error that I am getting is: > 425:error:06074079:digital envelope > routines:EVP_PBE_CipherInit:unknown pbe > algo