Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 15, 2018 at 07:25 AM

    Scenario screenshot is attached herewith

    Add comment
    10|10000 characters needed characters exceeded

    • 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.



  • Feb 15, 2018 at 10:56 AM

    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:

    Add comment
    10|10000 characters needed characters exceeded