On Apr 15, 10:05 pm, surya t <[email protected]> wrote:
> 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?
http://www.cryptopp.com/wiki/Keys_and_Formats

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

Reply via email to