cancel
Showing results for 
Search instead for 
Did you mean: 

PGP Decryption error - error while decryption PGP GnuPG v2 VERSION FILE

Pawan_Mahto
Explorer
0 Kudos

scenario - SFTP to FTP file transfer scenario using PGP

SFTP location contains encrypted file which is generated using public key and when this encrypted file is getting passed to FTP, I am facing below error

MP: exception caught with cause org.bouncycastle.openpgp.PGPException: Exception starting decryption

Observation from my side -

When encrypted file have Version: GnuPG v2, PO is throwing above error.

When encrypted file have version as BCPG C# v1.6.1.0, file is successfully getting decrypted

Please let me know is there any additional settings needs to be done in channel to accept

GnuPG v2 encrypted version

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member233999
Participant
0 Kudos

I had this a week or so ago, check the password specified, check order of settings and password for the pgp decryption / where the keys are stored and are referenced properly:

https://answers.sap.com/questions/425847/pgp-decryption-issues.html

Pawan_Mahto
Explorer
0 Kudos

Scenario screenshot is attached herewith

former_member366655
Active Participant
0 Kudos

Hi Pawan,

Are other Decryption scenarios working fine?

Regards,

Vivek

Pawan_Mahto
Explorer
0 Kudos

When encrypted file have version is BCPG C# v1.6.1.0, file is successfully getting decrypted

former_member366655
Active Participant
0 Kudos

Hi Pawan,

What I meant was - are other interfaces involving Decryption working fine , or you are facing issue in this particular interface?

Regards,

Vivek

Pawan_Mahto
Explorer
0 Kudos

Hi

This is the first scenario which we are trying using PGP decryption

former_member366655
Active Participant
0 Kudos

Hi Pawan,

Please check below points:

1. Password for Private Key provided in Channel.

2. Please try decrypting the file using any tool available over internet.

3. Check the key Length supported - goto http://host:Port/BC//VerifyJCE.

All entries should be OK(for each and every bit length).

4. Also , please give a screenshot of your SFTP Channel configuration.

Regards,

Vivek