I'm evaluating the SBB AS2 components. So I am testing the AS2Sender and AS2Receiver examples (Delphi 2010 - VCL). I use an older AS2-Server (Drummond Certified) for testing the connections.
1. On both sides, at the moment, I use the same test key for encryption and signing (a 1028 Bit RSA KEY).
2. when I send a file from the AS2Sender, I get the MDN response: unable to decrypt message: Length of the data to decrypt is invalid.
3. when I receive the file with the AS2Receiver from the AS2-Server, the file is correctly decoded. But the sent synchronous MDN-Response is not understood by the AS2-server.
4. Sending the file from ASSender to AS2Receiver works.
5. On the AS2Sender tab 'I. Encode data into AS2 message' after pressing the button '8. Encode and Save Message' then +Encryption is crossed out.

As our experience says, most often such problem can be solved by switching the value of TElAS2Message.Encryption.UseUndefSize property to a different value. I.e. if it is True now, switch it to False, and vice versa. Then create a new message and try to send it.

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.