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.
I have a java server that uses the JCSI library from DTSC in Australia and implements my certificates and keys with PBEandMD5andDES algorithm, PKCS#8 format.
The server first sends my client the CA certificate with a regular socket protocol. Then I connect to the server using server authentication and receive my Client certificate and private key.
Then when I try to connect using SSL server/client authentication I can't seem to be able load the privatekey using SSL_CTX_use_PrivateKey_file() but earlier call to SSL_CTX_use_certificate_file() returns just fine.
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 have also tried this workaround using the correct salt but it resulted in the same error.
-----------
strcpy(salt, "Hello th");
X509_ALGOR *alg = PKCS5_pbe_set(NID_pbeWithMD5AndDES_CBC, /*iter*/0, (unsigned char*)salt , saltlen);
int della = EVP_PBE_CipherInit(alg->algorithm, /*password*/"password", /*passwordlen*/8,alg->parameter, &ctx, 0);//last param: 0 = decryption 1 = encryption
----------
One might say that I am in dire straits... all comments welcomed
best regards,
Ragnar Agustsson
[EMAIL PROTECTED]
Iceland
- Re: SSL_CTX_use_PrivateKey_file() problem raggi
- Re: SSL_CTX_use_PrivateKey_file() problem Dr Stephen Henson
- Re: SSL_CTX_use_PrivateKey_file() problem raggi
- Re: SSL_CTX_use_PrivateKey_file() problem Dr Stephen Henson
- Re: SSL_CTX_use_PrivateKey_file() problem raggi