developer wrote:
>
> Guys,
> I'm totally confused with crypted rsa private keys.
> Simples code doesnt work ,, i browsed this newsgroup searching for
> answer, but useless.
> As i understand, PEM_read_bio_RSAPrivateKey now has following format
> RSA *PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **x, pem_password_cb *cb, char
>*user_data)
> if i read not crypted private key , all works fine, if i try to open
> DES crypted, it returns NULL.
> surely, i pointed user_data on my password, and even wrote proper
> callback function, but it never was called. tryed all possible
> variants ...
> :( i saw examples from /app directory and especially rsa.c ,,there,
> PEM_read_bio_RSAPrivateKey takes only bio and passin parameter... but
> if last is omitted , standart "Enter PEM phrase" appears,,,in my case, i dont
> even get this...
>
> so,,question,,what do i do wrong or how to load crypted private keys ?
>
Well you didn't read the FAQ for a start....
http://www.openssl.org/support/faq.html#10
and
http://www.openssl.org/support/faq.html#12
should make things clearer.
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]