Hey, thanks! I didn't supply the right password for the private key file through the SSL_CTX_set_default_passwd_cb() 2nd parameter. Now that I do - it works. Thanks! Guy Lutz Jaenicke <[EMAIL PROTECTED]> wrote: > On Mon, Apr 23, 2001 at 07:41:11PM -0400, Guy Sagy wrote: > ... > > pass = password; > > SSL_CTX_set_default_passwd_cb( pSSLContext, password_cb ); > > if ( !( SSL_CTX_use_PrivateKey_file( pSSLContext, "servkey.pem", > > SSL_FILETYPE_PEM ))) > ... > > But the function call SSL_CTX_use_PrivateKey_file(...) above fails internally > > inside pem_lib.c , on line 451 , line > > PEMerr(PEM_F_PEM_DO_HEADER,PEM_R_BAD_DECRYPT) . > > Hmm. I just had a look into the source and would guess, that something > is odd with the passphrase. Unfortunately you do not supply your password_cb. > > Best regards, > Lutz > -- > Lutz Jaenicke [EMAIL PROTECTED] > BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/ > Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129 > Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153 > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > Development Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]