cancel
Showing results for 
Search instead for 
Did you mean: 

Could not extract private key

PavanKumar
Active Contributor
0 Kudos

Hi,

I am getting below error while sign & encrypting the message using PGP Encryption.

my private key & public keys are placed in the server location folder.

MP: exception caught with cause org.bouncycastle.openpgp.PGPException: checksum mismatch at 0 of 2

PGP Encryption Module: Could not extract private key (org.bouncycastle.openpgp.PGPException: checksum mismatch at 0 of 2)

Exception caught by adapter framework: checksum mismatch at 0 of 2

Kindly help

Regards

Pavan

Accepted Solutions (0)

Answers (7)

Answers (7)

0 Kudos

case closed, it was some thing with the format

0 Kudos

Hi Pavan

Thanks for your answer

My problem is :

Error: com.sap.aii.adapter.pgp.ejb.api.util.InvalidConfigurationException: Private key could not be found

the key is in the referenced path.

Thanks

0 Kudos

Hi Pavan

I know it is been long time since this thread, but could you please share how you resolved the problem, I am having the issue of the private key could not be found eventhoug it is in the configured folder

I appreciate your help

PavanKumar
Active Contributor
0 Kudos

Hi Samer,

As i remembered due to wrong configuration i got that error.Actually I am supposed to generate and test with two keypair for internal testing one keypair should act like partner other should be ours but i have generated and used only one keypair for partner and ours.

I believe this was the reason.

Regards

Pavan

PavanKumar
Active Contributor
0 Kudos

Thanks for all your responses.

I have the resolved the issue.

JaySchwendemann
Active Contributor
0 Kudos

Please share, even if you solved for yourself so others with same problem could participate, see here, why

Former Member
0 Kudos

Hi Pavan,

We are facing the same issue can you please confirm how did you resolved it.

Thanks a lot in advance,

Venu.

former_member186851
Active Contributor
0 Kudos

Pavan ensure you selected the correct algorithm for signing..and as engg suggested post the module screen shot to assist further.

sahithi_moparthi
Contributor
0 Kudos

Hi Pavan,

Could you please check the configuration once.

Also have you exchanged your public keys with your partner.

Please check whether the Folder has : Your Public and Private keys and Partner Partner key.

Please check whether the JCE policy is updated.

engswee
Active Contributor
0 Kudos

Hi Pavan

Did you enter the passphrase for the private key?

Can you share your module config screenshot?

Regards

Eng Swee

engswee
Active Contributor
0 Kudos

Checksum issue is similar to the error in the following thread:-

Re: PGP Decryption Module error