cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot decrypt the message error

harish_babu5
Participant
0 Kudos

Hi guys,

I have an Inbound AS2 scenario. We are using certificate authentication. We are getting this error while decrypting the incoming AS2 message.

These are the logs:

Message is encrypted with DES-EDE3-CBC (1.2.840.113549.3.7) algorithm

Message is encrypted for receipient X509CertSelector:

Error while decrypting the AS2 message. Cannot decrypt message:org.bouncycastle.cms.CMSException: Key Invalid in message

The encryption algorithm used is Triple DES. In my PI system it's popping up as 3DES. I asked the client to change it to 3DES, the encryption algorithm but client says "Triple DES" and "3DES" are same.

However, I am getting error in encryption. Can you guys suggest me something?

Harish Babu

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Harish,

As far as i know with 3DES you need an initial vector, how are you setting it?

Regards.

Answers (1)

Answers (1)

harish_babu5
Participant
0 Kudos

Hi

We implemented note 1240081 - Java Cryptography Extension (JCE) Jurisdiction Policy Files in PO server.


After that, the issue was resolved.


Regards


Harish Babu