Hi Frank,
Thanks for these thoughts.
On 10/13/2015 09:57 PM, Frank Migge wrote:
> Hi David,
>
> I didn't spot the error in your code. But since d2i_RSAPrivateKey()
> fails on the DER data, how about a workaround? If your remaining code
> works fine, you could extract the RSA key from the
Hi David,
I didn't spot the error in your code. But since d2i_RSAPrivateKey()
fails on the DER data, how about a workaround? If your remaining code
works fine, you could extract the RSA key from the EVP_PKEY object
(which you are getting with d2i_PrivateKey), e.g.
RSA *rsakey;
rsakey
Hi David,
Your attached sample certificate and private key (1024 bit RSA) works fine.
I am reading it with PEM_read_PrivateKey( fp, , NULL, NULL), and also
PEM_read_bio_PrivateKey(pkeybio, NULL, 0, NULL) works.
If you could post the code or code fragment that creates the problem?
Hello openssl people,
I am trying to read a private key of a certificate into memory using
d2i_RSAPrivateKey. I'm able to read the certificate without a problem, but
when I pass the private key to d2i_RSAPrivateKey, it fails to parse. I do not
see an error message or errno being set -