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?

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to