Hi,

I am trying to read the private key (generated by Openssl) using following
code.

But its exiting from the last line. Do you have any idea?

I have used libeay32MD.lib from the folder C:\openssl\lib\VC .
RSA* pPrivateKeyRSA = NULL;

FILE* pPrivateKeyFile;

pPrivateKeyFile = fopen("mykey.pem","rb");

PEM_read_RSAPrivateKey(pPrivateKeyFile, NULL, NULL, NULL);

Thanks,
BT
-- 
View this message in context: 
http://old.nabble.com/PEM_read_RSAPrivateKey-crashing-in-vc%2B%2B-tp26473809p26473809.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to