Hello Steve,
Thanks! It works.
> Date: Tue, 25 Mar 2008 18:00:58 +0100
> From: [EMAIL PROTECTED]
> To: openssl-users@openssl.org
> Subject: Re: PEM_read_RSAPrivateKey() does not call callback function
>
> On Tue, Mar 25, 2008, learning openssl wrote:
>
> >
>
On Tue, Mar 25, 2008, learning openssl wrote:
>
> Hello,
>
> I created a private key with password. But I can not read that key again. And
> the callback function "pass_cb" was not called at all.
>
Add a call to OpenSSL_add_all_algorithms(). See the FAQ for the reason.
Steve.
--
Dr Stephen N
Hello,
I created a private key with password. But I can not read that key again. And
the callback function "pass_cb" was not called at all.
FILE *privateKeyFilePW;
RSA *keyReading=NULL;
privateKeyFilePW =fopen("PrivatekeyPW.pem", "w");
PEM_write_RSAPrivateKey(privateKeyFilePW, r,EVP_des_ede3_c