Symptom
You have set an AS2 sender channel and your partner sends encrypted messages. During the decryption of the AS2 message you get the following error:
Catching Cannot decrypt message: java.lang.IllegalArgumentException: the message is not encrypted for Version: 3
Serial number: <SERIALNUMBER>
Signature algorithm: sha1WithRSAEncryption (1.2.840.113549.1.1.5)
Issuer: CN=<issuer of the key>,C=<country>
Valid not before: Thu Jun 10 10:00:00 CEST 2010
not after: Mon Jun 10 10:00:00 CEST 2030
Subject: CN=<subject of the key>,C=<country>
RSA public key (2048 bits):
public exponent: 10001
modulus: <modulus of the key>
Certificate Fingerprint (MD5) : <MD5 of the key>
Certificate Fingerprint (SHA-1): <fingerprint of the key>
Extensions: 1
at com.sap.aii.adapter.as2.ra.api.util.BouncyCastleUtils.decryptAndDecompressAS2Message(BouncyCastleUtils.java:659)
at com.sap.aii.adapter.as2.ra.api.AS2Receiver.parseMessage(AS2Receiver.java:425)
at com.sap.aii.adapter.as2.ra.integration.ChannelDispatcher.receive(ChannelDispatcher.java:404)
at com.sap.aii.adapter.as2.servlet.AS2DispatcherServlet.doPost(AS2DispatcherServlet.java:254)
Read more...
Environment
- SAP enhancement package 1 for SAP NetWeaver Process Integration 7.1 >= SP08
- SAP NetWeaver 7.3 >= SP05
- SAP enhancement package 1 for SAP NetWeaver 7.3
- SAP NetWeaver 7.4
- SAP NetWeaver 7.5
- SAP Process Integration, business-to-business add-on
Product
Keywords
AS2, AS2 Sender, AS2 Sender channel, decryptAndDecompressAS2Message, decryption, encryption, private key, public key, keypair, Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.4, PI 7.4, PO 7.4, Process Orchestration 7.5, PI 7.5, PO 7.5, XI, AEX , KBA , BC-XI-CON-B2B-AS2 , Applicability Statement Protocol Adapter , How To
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.