SAP Knowledge Base Article - Preview

3164534 - PI/PO - Error: org.bouncycastle.openpgp.PGPException: invalid key

Symptom

You have configured a File sender communication channel but are facing following errors during runtime. You also configure module PGPDecryption in File sender communication channel.

  • Wed Jan 05 12:44:22 AWST 2022 Error: org.bouncycastle.openpgp.PGPException: invalid key.
  • Wed Jan 05 12:43:22 AWST 2022 Retry interval started. Length: 60.0 seconds

You find below from XPI Inspector trace.

Catching com.sap.aii.af.lib.mp.module.ModuleException: PGPDecryption Module: 
at com.sap.aii.adapter.pgp.ejb.api.PGPDecryptionBean.process(PGPDecryptionBean.java:263)
at sun.reflect.GeneratedMethodAccessor1355.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
...
Caused by: org.bouncycastle.openpgp.PGPException: invalid key.
at org.bouncycastle.openpgp.PGPOnePassSignature.initVerify(PGPOnePassSignature.java:90)
at com.sap.aii.adapter.pgp.ejb.api.util.PGPSignatureUtil.verifyPGPOPSL(PGPSignatureUtil.java:55)
at com.sap.aii.adapter.pgp.ejb.api.PGPDecryptionBean.process(PGPDecryptionBean.java:194)
... 59 more
Caused by: java.security.InvalidKeyException: can't recognise key type in DSA based signer
at org.bouncycastle.jce.provider.JDKDSASigner.engineInitVerify(Unknown Source)
at java.security.Signature$Delegate.engineInitVerify(Signature.java:1168)
at java.security.Signature.initVerify(Signature.java:460)
at org.bouncycastle.openpgp.PGPOnePassSignature.initVerify(PGPOnePassSignature.java:86)
... 61 more


Read more...

Environment

  • SAP NetWeaver
  • SAP Process Integration

Keywords

PGPException, invalid key, can't recognise key type in DSA based signer, InvalidKeyException, File, Process Integration, PI, Process Orchestration, PO, NetWeaver, XI, AEX , KBA , BC-XI-CON-SFT , Secure File Transfer Protocol Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.