SAP Knowledge Base Article - Public

3320902 - Messages are failing with "com.sap.esb.camel.security.pgp.PgpException: An exception occurred during decrypting/verifiyng a PGP message" in your SAP Cloud Integration tenant

Symptom

You notice that iflows where PGP encryption/decryption is involved are failing with the below error in your SAP CI tenant, although the deployed KeyRing is valid (this can be checked here: Overview/Manage PGP Keys)

com.sap.esb.camel.security.pgp.PgpException: An exception occurred during decrypting/verifiyng a PGP message. The PGP message may have been tampered. Reason: Timeout expired when waiting for mandatory OSGi service reference: (objectClass=com.sap.esb.security.pgp.PGPSecretKeyringAccessor), cause: org.osgi.service.blueprint.container.ServiceUnavailableException: Timeout expired when waiting for mandatory OSGi service reference: (objectClass=com.sap.esb.security.pgp.PGPSecretKeyringAccessor)

Environment

SAP Cloud Integration
SAP Integration Suite

Cause

There was a temporary issue during keyring synchronization which leads to this situation.

Resolution

Please redeploy the KeyRing first and then redeploy the iflow as well.

Keywords

CPI, CI, HCI, BTP, PgpException, tampered, Timeout, OSGi service, PGPSecretKeyringAccessor, ServiceUnavailableException,  , KBA , LOD-HCI-PI-CON-SOAP , SOAP Adapter , Problem

Product

SAP S/4HANA Cloud 2302