On Apr 16, 7:05 am, 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?
I got it? The Private key should be in DER format which is given in the below link http://stackoverflow.com/questions/9815001/load-pem-encoded-private-rsa-key-in-crypto -- 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.
