Re: [openssl-users] d2i_RSAPrivateKey not working on a private key

2015-10-13 Thread Benjamin Kaduk
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 EVP_PKEY

Re: [openssl-users] d2i_RSAPrivateKey not working on a private key

2015-10-13 Thread Frank Migge
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 =