I am facing this following AS2 MDN error for my EDIINT send request with one specific partner(they use self-signed certificate)
Received EDIINT MDN but failed:
has been [processed/Error: authentication-failed].
Authentication Failure while decoding message. The exception is [java.security.SignatureException: too much data for RSA block]
Both sides certs are in place partner security tab (sign,decrypt,verify) etc…and all the certs serial numbers match.
Never came across this error in my EDIINT experience…
P.S:I have googled and Empowered also with no luck.
Has any one dealt with the above any thoughts on how to resolve it?
I guess it’s the encryption Algorithm mismatch.
If you are using TripleDES, DES etc for encryption, and the client is expecting RSA ecrypted data, it will generate this error.
Check if your client’s system is configured to use RSA.
HTH,
read some posts on web, seems there is a length limit on the data that can be encrypted by this algorithm.
You can either try to test with a really small payload,
or switch to use: Triple DES, it doesn’t have length limit.
when initialize a cipher, there are another two parameters besides algorithm: Mode and Padding
There are default values for the Java platform + security lib used.
The error indicates either the Mode or Padding (most likely) are not matching between two systems. They may have different default values, or one system is explicitly initialized with certain value that the other side doesn’t use.
You may want to open a ticket with SAG for quick resolution. Your TP may also open ticket with their vendor to find the detail too. This is hard to figure out.