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 ?


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

Reply via email to