Skip to Content

PGP decryption issues.

Hi

Im currently relocating a number of interfaces from BizTalk to PI, one of the interfaces (concur) has pgp decrypt on it. I've imported the keys to NWA, references them in the pgpmodule settings in pi and get this most onerous of messages, I've checked for typo's, recreated it, and cleared the cache, I'm able to find the file in question using a regex but when it comes to decrypting the file, I get the below error and I've not found anything similar on scn, hence this post. Any ideas?

'

MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: Error occurred: ; nested exception is: javax.ejb.EJBTransactionRolledbackException: Transaction ended with error, reason: ; nested exception is: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPDecryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPDecryptionBean@14680ed9 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPDecryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.adapter.pgp.ejb.api.util.PGPDecModuleUtil.addAuditLogEntry(com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus, java.lang.String, java.lang.Object[]) of a null object loaded from a local variable at slot 4

'


The file exists on the sftp site, the file is not empty and ive set adaptor to process emptys anyway. cusersgeorge-applegatedesktopconcurerror.png

I can only think that the pgp keys used for BizTalk are somehow not compatible with PI and that I should generate new PI public keys and share them with concur.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 06 at 12:16 PM

    Hi George,


    You should change the module order. The CallSAPAdapter should be the last.


    Best regards,

    Mate

    Add comment
    10|10000 characters needed characters exceeded

    • So to sum up :

      1) Incorrect order for the module - decrypt goes first

      2) Specify keyRootPath \\servername\sap_interfaces\security

      3) Imported ownPrivateKey & partnerPublicKey into the b2bic eg \\server:50000\b2bic

      4) specified 'useSecureStore'

      Which then lead to this error "

      PGPException: checksum mismatch at 0 of 20

      "

      5) so checked with business, and the password they'd provided was incorrect. Hmm .

      All works fine now, thankyou :)