Thank you for your quick response Dr. Henson.

I thought to myself: "but I've done that!,  although I call the SSLeay_add_ssl_algorithms() but it's now defined as OpenSSL_add_all_algorithms()... no wait a minute... it defined as OpenSSL_add_ssl_algorithms()".
Well, a stupid mistake on my behalf.

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 trick:
"X509_ALGOR *alg = PKCS5_pbe_set(NID_pbeWithMD5AndDES_CBC, /*iter*/0, (unsigned char*)salt , saltlen);
EVP_PBE_CipherInit(alg->algorithm, /*password*/"password", /*passwordlen*/8,alg->parameter, &ctx, 0);"

Because this is still failing,
"SSL_CTX_use_PrivateKey_file(m_pCtx,key_file,SSL_FILETYPE_PEM)"
only now with the error previously described.

Well I will be calling it the quits today because we're having a incredibly beautyful summerday here in Iceland, and we only have a couble of those each summer. :)

cheers,
Ragnar



Dr Stephen Henson <[EMAIL 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 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
> algorithm:.crypto\evp\evp_pbe.c:89:Type=pbeWithMD5AndDes-CBC
>

I think something similar is in the FAQ. You need to load OpenSSL's
internal algorithm table with OpenSSL_add_all_algorithms().

Steve.
--
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]


Reply via email to