I also found errors using PEM_read_
RSAPrivateKey(FILE *fp,...) OR PEM_read_bio_RSAPrivateKey(BIO *bio,...) when the
bio points to a file.
My solution was to read the private-key file into a
memory buffer with fread().
(This means that the file is not protected with a
password)
Associate a bio with this memory
buffer:
bio = BIO_new(bio_s_mem())
Using the PEM_read_bio_RSAPrivateKey() now works
for some reason.
Is do not know what causes this problem under
windows.
|
- Re: BIO_printf() and ERR_print_errors() do not allocate... Stephan Schulze
- Re: BIO_printf() and ERR_print_errors() do not all... Dr. Stephen Henson