Hi.
I am writing an application that uses openssl. I need to be able to load
encrypted private keys.
I copied the code out of "openssl/crypto/apps/ec.c" (one of the key
types I'm importing is the ec-key type). Specifically, I call
PEM_read_bio_ECPrivateKey(bp, NULL, NULL, passin);
where "bp" is the bio, and "passin" is the char* passphrase. It works
fine for unencrypted keys (passin == NULL), but it fails on encrypted
keys with the following message:
26600:error:0906B072:PEM routines:PEM_get_EVP_CIPHER_INFO:unsupported
encryption:pem_lib.c:481:
I've looked at the code in pem_lib.c, but I can't figure out what the
problem is.
I created (and encrypted the key I'm importing with the openssl command
line utility and I can unencrypt it using the same. I've tried both des
and des3. I'm very lost.
I also tried just using the "raw" PEM_read_bio_PrivateKey". Furthermore,
I tried using PEM_read_PrivateKey (which just takes a file pointer) and
got the same error.
Can anyone help me?
-- Seth N.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]