Skip to Content
avatar image
Former Member

PGP Encryption Module: Could not extract private key


Hello,

The following error happens when we are using PGP module to encrypt the file in file sender communication channel.

The scenario is we got file from a SAP folder first, then encrypt it in the sender communication channel and finally SFTP it to another system.

12.01.2015 08:44:02.921InformationMP: processing local module localejbs/PGPEncryption12.01.2015 08:44:02.921InformationPGP Encryption Module: Message 5316be93-82b2-11e4-a9c5-000026e0243e arrived in PGP Module.12.01.2015 08:44:02.921InformationPGP Encryption Module: Reading public key at /usr/sap/.../sec/ABC.asc12.01.2015 08:44:02.921InformationPGP Encryption Module: The module-paramteter "asciiArmored" is not set. Using default value "true"12.01.2015 08:44:02.921InformationPGP Encryption Module: The module-paramteter "format" is not set. Using default value "binary"12.01.2015 08:44:02.921InformationPGP Encryption Module: The module-paramteter "keyRootPath" is not set. Using default value "/usr/sap/.../sec"12.01.2015 08:44:02.921WarningPGP Encryption Module: The module-paramteter "dynamicFileName" is not set. Will be using Message ID as the file name while encrypting.12.01.2015 08:44:02.921WarningPGP Encryption Module: The module-paramteter "dynamicNamespace" is not set. Will be using Message ID as the file name while encrypting.12.01.2015 08:44:02.934InformationPGP Encryption Module: Reading private key at /usr/sap/.../sec/DEF.skr12.01.2015 08:44:03.009ErrorPGP Encryption Module: Could not extract private key (org.bouncycastle.openpgp.PGPException: checksum mismatch at 0 of 20)12.01.2015 08:44:03.010ErrorMP: exception caught with cause org.bouncycastle.openpgp.PGPException: checksum mismatch at 0 of 2012.01.2015 08:44:03.016ErrorAttempt to process file failed with org.bouncycastle.openpgp.PGPException: checksum mismatch at 0 of 20

the message seems weired, does anybody know  what the error message mean and how to fix it? thanks in advance

( we test the PGP encryption(key size 2048) in our acceptance system and it is working, while in production system we increase the key size to 4096 then the error message is issued, does the key size matter? we are using PI 730... )

Dario

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 13, 2015 at 01:54 PM

    hi Jiang,

    Please check below blog and update JCE policy.

    http://scn.sap.com/community/b2b-integration/blog/2012/07/12/b2b-adapters--updating-to-jce-unlimited-strength-jurisdiction-policy

    You can refer this note no 1915999 to check if the JCE policy is updated or not.

    Hope this helps.

    thanks and regards,

    Praveen T

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      yes we've solved our issue by regenerating the private key.

      this issue is caused by the PGP software we used, which has a weird characteristic: if you don't clear the previous generated private key(might be stored in a folder of the software) then it will be added to the newly generated key file, you might see if you don't do this 'clear' step the key file will become bigger and bigger even nothing else is changed.

      hope this can help you.

      dario.