PEM_read_bio_PrivateKey(..) or PEM_read_bio_RSAPrivateKey(..) both returns NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: openssl-users On Behalf Of Nayna Jain
> Sent: Friday, May 01, 2015 22:37

> I have a privatekey file written using the call
PEM_write_bio_RSAPrivateKey(...)

> The file write operation has been successful.

Do you mean the PEM_write_ returned 1, or do you mean the file contains 
correct (or at least reasonable) contents? Can you read it with commandline 
'openssl pkey <file' ?

> However, when i am trying to read it via calls PEM_read_bio_PrivateKey(..)
or 
> PEM_read_bio_RSAPrivateKey(..) , it is always returning NULL.
> There is no encryption also done . It i unencrypted private key. 
> Can someone help me to understand what might be wrong.

http://www.openssl.org/support/faq.html#PROG6 
http://www.openssl.org/support/faq.html#PROG7





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux