surya t
unread,Apr 15, 2012, 10:05:14 PM4/15/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Crypto++ Users
I have created the private key using openssl command
openssl genrsa -out ca.key 1024
but when I tried to load the same it is giving exception. I am using
LoadKey function to load the private key
string str("ca.key");
RSA::PrivateKey prkey;
LoadKey(str, prkey);
.......
......
Definition for LoadKey
void LoadKey( const string& filename, RSA::PrivateKey& PrivateKey )
{
// DER Encode Key - PKCS #8 key format
PrivateKey.Load(
FileSource( filename.c_str(), true, NULL, true /
*binary*/ ).Ref()
);
}
can anyone tell me what is the issue?