I have successfully sent and received messages for this server to another OpenAS2 server that I have setup. I have also sent and received an MDN from my trading partner; however, when my trading partner attempt to send a file to me, I receive the error - Authentication of the originator of the message failed. The full trace is as follows (I have change the company names and ip address for security purposes).
05/16/16 12:03:37 OpenAS2Server: - OpenAS2 Started -
05/16/16 12:18:50 AS2ReceiverHandler: incoming connection xxx.xxx.xxx.xxx 65160
05/16/16 12:18:50 AS2ReceiverHandler: received 24863 bytes in 0.109 seconds at 222.773 KBps xxx.xxx.xxx.xxx 65160 [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 AS2ReceiverHandler: decrypting ::: [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 BCCryptoHelper: Extracted X500 info:: PRINCIPAL : EMAILADDRESS=MyCompany@myCorp.com, CN=MyCompany, OU=IT, O=MyCompany,L=MyCompany, ST=Texas, C=US :: NAME : 1.2.840.113549.1.9.1=#16134e617661736f7461406d79436f72702e636f6d,CN=MyCompany,OU=IT,O=MyCompany,L=MyCompany,ST=Texas,C=US
05/16/16 12:18:51 BCCryptoHelper: Compression check. MIME Base Content-Type:multipart/signed
05/16/16 12:18:51 BCCryptoHelper: Compression check. SMIME-TYPE:null
05/16/16 12:18:51 BCCryptoHelper: Compressed MIME msg AFTER COMPRESSION Content-Disposition:null
05/16/16 12:18:51 BCCryptoHelper: Check for compressed data failed on BASE content type: multipart/signed
05/16/16 12:18:51 AS2ReceiverHandler: verifying signature [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 BCCryptoHelper: Signer verification failed: message-digest attribute value does not match calculated value
05/16/16 12:18:51 org.bouncycastle.cms.CMSSignerDigestMismatchException: message-digest attribute value does not match calculated value
at org.bouncycastle.cms.SignerInformation.doVerify(Unknown Source)
at org.bouncycastle.cms.SignerInformation.verify(Unknown Source)
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:18:51 AS2ReceiverHandler: Error decrypting received message: Verification failed [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:18:51 DefaultProcessor: Processor searching for module handler for action: storemdn
05/16/16 12:18:51 MessageParameters: Attempting filename extraction from Content-disposition: null
05/16/16 12:18:51 AS2ReceiverHandler: sent MDN [automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed][6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 OpenAS2Exception: Error occurred:: Verification failed
Sources: {message=Message From:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}To:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}
Headers:{Host=xxx.xxx.xxx.xxx:38890, Accept-Encoding=gzip, deflate, User-Agent=IP*Works! V8 EDI Component - www.nsoftware.com, Connection=close, Content-Length=24863, AS2-To=MyCompany, AS2-From=TRADINGPARTNER, AS2-Version=1.2, EDIINT-Features=multiple-attachments, Date=Mon, 16 May 2016 17:18:34 GMT, Message-Id=6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04, Disposition-Notification-To=AS2@TRADINGPARTNER.com, Mime-Version=1.0, Content-Type=multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="boundaryE6t5", Content-Disposition=null}
Attributes:{HTTP_REQUEST_TYPE=POST, destination_ip=/192.168.0.4, HTTP_REQUEST_URL=/, source_ip=/xxx.xxx.xxx.xxx, destination_port=38890, source_port=65160}
MDN:MDN From:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}To:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}
Headers:{Date=Mon, 16 May 2016 12:18:51 -0500, From=sstapp@nistx.com, Message-Id=OPENAS2-16052016121851-0500-6075@MyCompany_TRADINGPARTNER, Subject=Your Requested MDN Response, MIME-Version=1.0, Content-Type=multipart/report; report-type=disposition-notification;
boundary="----=_Part_0_6149506.1463419131200", AS2-To=TRADINGPARTNER, AS2-From=MyCompany, AS2-Version=1.1, Server=OpenAS2 v1.3.6, Content-Length=760}
Attributes:{DISPOSITION=automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed, MIC=null, ORIGINAL_MESSAGE_ID=6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04, ORIGINAL_RECIPIENT=rfc822; MyCompany, REPORTING_UA=OpenAS2 v1.3.6@/192.168.0.4:38890, FINAL_RECIPIENT=rfc822; MyCompany}
Text:
The message sent to Recipient MyCompany on Mon, 16 May 2016 17:18:34 GMT with Subject null has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. Authentication of the originator of the message failed.
}
org.openas2.DispositionException: automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
Caused by: java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
... 3 more
05/16/16 12:18:51 OpenAS2Exception: Error occurred:: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121851.9ab8c52b-3956-4171-a256-940b3458b04f
Sources: {}
org.openas2.message.InvalidMessageException: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121851.9ab8c52b-3956-4171-a256-940b3458b04f
at org.openas2.processor.receiver.NetModule.handleError(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:21 AS2ReceiverHandler: incoming connection xxx.xxx.xxx.xxx 65288
05/16/16 12:19:21 AS2ReceiverHandler: received 24863 bytes in 0.125 seconds at 194.248 KBps xxx.xxx.xxx.xxx 65288 [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 AS2ReceiverHandler: decrypting ::: [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 BCCryptoHelper: Extracted X500 info:: PRINCIPAL : EMAILADDRESS=MyCompany@myCorp.com, CN=MyCompany, OU=IT, O=MyCompany =MyCompany, ST=Texas, C=US :: NAME : 1.2.840.113549.1.9.1=#16134e617661736f7461406d79436f72702e636f6d,CN=MyCompany,OU=IT,O=MyCompany Industrial Supply,L=MyCompany,ST=Texas,C=US
05/16/16 12:19:21 BCCryptoHelper: Compression check. MIME Base Content-Type:multipart/signed
05/16/16 12:19:21 BCCryptoHelper: Compression check. SMIME-TYPE:null
05/16/16 12:19:21 BCCryptoHelper: Compressed MIME msg AFTER COMPRESSION Content-Disposition:null
05/16/16 12:19:21 BCCryptoHelper: Check for compressed data failed on BASE content type: multipart/signed
05/16/16 12:19:21 AS2ReceiverHandler: verifying signature [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 BCCryptoHelper: Signer verification failed: message-digest attribute value does not match calculated value
05/16/16 12:19:21 org.bouncycastle.cms.CMSSignerDigestMismatchException: message-digest attribute value does not match calculated value
at org.bouncycastle.cms.SignerInformation.doVerify(Unknown Source)
at org.bouncycastle.cms.SignerInformation.verify(Unknown Source)
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:21 AS2ReceiverHandler: Error decrypting received message: Verification failed [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:21 DefaultProcessor: Processor searching for module handler for action: storemdn
05/16/16 12:19:21 MessageParameters: Attempting filename extraction from Content-disposition: null
05/16/16 12:19:21 AS2ReceiverHandler: sent MDN [automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed][741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 OpenAS2Exception: Error occurred:: Verification failed
Sources: {message=Message From:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}To:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}
Headers:{Host=xxx.xxx.xxx.xxx:38890, Accept-Encoding=gzip, deflate, User-Agent=IP*Works! V8 EDI Component - www.nsoftware.com, Connection=close, Content-Length=24863, AS2-To=MyCompany, AS2-From=TRADINGPARTNER, AS2-Version=1.2, EDIINT-Features=multiple-attachments, Date=Mon, 16 May 2016 17:19:05 GMT, Message-Id=741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04, Disposition-Notification-To=AS2@TRADINGPARTNER.com, Mime-Version=1.0, Content-Type=multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="boundaryE6t5", Content-Disposition=null}
Attributes:{HTTP_REQUEST_TYPE=POST, destination_ip=/192.168.0.4, HTTP_REQUEST_URL=/, source_ip=/xxx.xxx.xxx.xxx, destination_port=38890, source_port=65288}
MDN:MDN From:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}To:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}
Headers:{Date=Mon, 16 May 2016 12:19:21 -0500, From=sstapp@nistx.com, Message-Id=OPENAS2-16052016121921-0500-3627@MyCompany_TRADINGPARTNER, Subject=Your Requested MDN Response, MIME-Version=1.0, Content-Type=multipart/report; report-type=disposition-notification;
boundary="----=_Part_1_28678543.1463419161542", AS2-To=TRADINGPARTNER, AS2-From=MyCompany, AS2-Version=1.1, Server=OpenAS2 v1.3.6, Content-Length=763}
Attributes:{DISPOSITION=automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed, MIC=null, ORIGINAL_MESSAGE_ID=741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04, ORIGINAL_RECIPIENT=rfc822; MyCompany, REPORTING_UA=OpenAS2 v1.3.6@/192.168.0.4:38890, FINAL_RECIPIENT=rfc822; MyCompany}
Text:
The message sent to Recipient MyCompany on Mon, 16 May 2016 17:19:05 GMT with Subject null has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. Authentication of the originator of the message failed.
}
org.openas2.DispositionException: automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
Caused by: java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
... 3 more
05/16/16 12:19:21 OpenAS2Exception: Error occurred:: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121921.1e6bf385-f874-4ea5-891b-384a7cceb84c
Sources: {}
org.openas2.message.InvalidMessageException: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121921.1e6bf385-f874-4ea5-891b-384a7cceb84c
at org.openas2.processor.receiver.NetModule.handleError(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:51 AS2ReceiverHandler: incoming connection xxx.xxx.xxx.xxx 49223
05/16/16 12:19:51 AS2ReceiverHandler: received 24863 bytes in 0.125 seconds at 194.248 KBps xxx.xxx.xxx.xxx 49223 [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 AS2ReceiverHandler: decrypting ::: [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 BCCryptoHelper: Extracted X500 info:: PRINCIPAL : EMAILADDRESS=MyCompany@myCorp.com, CN=MyCompany, OU=IT, O=MyCompany =MyCompany, ST=Texas, C=US :: NAME : 1.2.840.113549.1.9.1=#16134e617661736f7461406d79436f72702e636f6d,CN=MyCompany,OU=IT,O=MyCompany Industrial Supply,L=MyCompany,ST=Texas,C=US
05/16/16 12:19:51 BCCryptoHelper: Compression check. MIME Base Content-Type:multipart/signed
05/16/16 12:19:51 BCCryptoHelper: Compression check. SMIME-TYPE:null
05/16/16 12:19:51 BCCryptoHelper: Compressed MIME msg AFTER COMPRESSION Content-Disposition:null
05/16/16 12:19:51 BCCryptoHelper: Check for compressed data failed on BASE content type: multipart/signed
05/16/16 12:19:51 AS2ReceiverHandler: verifying signature [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 BCCryptoHelper: Signer verification failed: message-digest attribute value does not match calculated value
05/16/16 12:19:51 org.bouncycastle.cms.CMSSignerDigestMismatchException: message-digest attribute value does not match calculated value
at org.bouncycastle.cms.SignerInformation.doVerify(Unknown Source)
at org.bouncycastle.cms.SignerInformation.verify(Unknown Source)
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:51 AS2ReceiverHandler: Error decrypting received message: Verification failed [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:51 DefaultProcessor: Processor searching for module handler for action: storemdn
05/16/16 12:19:51 MessageParameters: Attempting filename extraction from Content-disposition: null
05/16/16 12:19:51 AS2ReceiverHandler: sent MDN [automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed][3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 OpenAS2Exception: Error occurred:: Verification failed
Sources: {message=Message From:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}To:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}
Headers:{Host=xxx.xxx.xxx.xxx:38890, Accept-Encoding=gzip, deflate, User-Agent=IP*Works! V8 EDI Component - www.nsoftware.com, Connection=close, Content-Length=24863, AS2-To=MyCompany, AS2-From=TRADINGPARTNER, AS2-Version=1.2, EDIINT-Features=multiple-attachments, Date=Mon, 16 May 2016 17:19:35 GMT, Message-Id=3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04, Disposition-Notification-To=AS2@TRADINGPARTNER.com, Mime-Version=1.0, Content-Type=multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="boundaryE6t5", Content-Disposition=null}
Attributes:{HTTP_REQUEST_TYPE=POST, destination_ip=/192.168.0.4, HTTP_REQUEST_URL=/, source_ip=/xxx.xxx.xxx.xxx, destination_port=38890, source_port=49223}
MDN:MDN From:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}To:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}
Headers:{Date=Mon, 16 May 2016 12:19:51 -0500, From=sstapp@nistx.com, Message-Id=OPENAS2-16052016121951-0500-5570@MyCompany_TRADINGPARTNER, Subject=Your Requested MDN Response, MIME-Version=1.0, Content-Type=multipart/report; report-type=disposition-notification;
boundary="----=_Part_2_5503831.1463419191900", AS2-To=TRADINGPARTNER, AS2-From=MyCompany, AS2-Version=1.1, Server=OpenAS2 v1.3.6, Content-Length=760}
Attributes:{DISPOSITION=automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed, MIC=null, ORIGINAL_MESSAGE_ID=3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04, ORIGINAL_RECIPIENT=rfc822; MyCompany, REPORTING_UA=OpenAS2 v1.3.6@/192.168.0.4:38890, FINAL_RECIPIENT=rfc822; MyCompany}
Text:
The message sent to Recipient MyCompany on Mon, 16 May 2016 17:19:35 GMT with Subject null has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. Authentication of the originator of the message failed.
}
org.openas2.DispositionException: automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
Caused by: java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
... 3 more
05/16/16 12:19:51 OpenAS2Exception: Error occurred:: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121951.b8ef0c24-2eb9-4b92-ae5c-4ae26a4e4a0f
Sources: {}
org.openas2.message.InvalidMessageException: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121951.b8ef0c24-2eb9-4b92-ae5c-4ae26a4e4a0f
at org.openas2.processor.receiver.NetModule.handleError(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please try this version and confirm if the issue still exists. If it does then run the OpenAS2 app in TRACE log mode with the following flag added to the startup command and upload the log please:
-DlogRxdMsgMimeBodyParts=true
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should upgrtade to version 2.0.0 that fixes a number of very long standing bugs in OpenAS2 if you are still using the app.
It would be appreciated if you would reveiew the app here if you are still using it: https://sourceforge.net/projects/openas2/reviews
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have successfully sent and received messages for this server to another OpenAS2 server that I have setup. I have also sent and received an MDN from my trading partner; however, when my trading partner attempt to send a file to me, I receive the error - Authentication of the originator of the message failed. The full trace is as follows (I have change the company names and ip address for security purposes).
05/16/16 12:03:37 OpenAS2Server: - OpenAS2 Started -
05/16/16 12:18:50 AS2ReceiverHandler: incoming connection xxx.xxx.xxx.xxx 65160
05/16/16 12:18:50 AS2ReceiverHandler: received 24863 bytes in 0.109 seconds at 222.773 KBps xxx.xxx.xxx.xxx 65160 [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 AS2ReceiverHandler: decrypting ::: [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 BCCryptoHelper: Extracted X500 info:: PRINCIPAL : EMAILADDRESS=MyCompany@myCorp.com, CN=MyCompany, OU=IT, O=MyCompany,L=MyCompany, ST=Texas, C=US :: NAME : 1.2.840.113549.1.9.1=#16134e617661736f7461406d79436f72702e636f6d,CN=MyCompany,OU=IT,O=MyCompany,L=MyCompany,ST=Texas,C=US
05/16/16 12:18:51 BCCryptoHelper: Compression check. MIME Base Content-Type:multipart/signed
05/16/16 12:18:51 BCCryptoHelper: Compression check. SMIME-TYPE:null
05/16/16 12:18:51 BCCryptoHelper: Compressed MIME msg AFTER COMPRESSION Content-Disposition:null
05/16/16 12:18:51 BCCryptoHelper: Check for compressed data failed on BASE content type: multipart/signed
05/16/16 12:18:51 AS2ReceiverHandler: verifying signature [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 BCCryptoHelper: Signer verification failed: message-digest attribute value does not match calculated value
05/16/16 12:18:51 org.bouncycastle.cms.CMSSignerDigestMismatchException: message-digest attribute value does not match calculated value
at org.bouncycastle.cms.SignerInformation.doVerify(Unknown Source)
at org.bouncycastle.cms.SignerInformation.verify(Unknown Source)
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:18:51 AS2ReceiverHandler: Error decrypting received message: Verification failed [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:18:51 DefaultProcessor: Processor searching for module handler for action: storemdn
05/16/16 12:18:51 MessageParameters: Attempting filename extraction from Content-disposition: null
05/16/16 12:18:51 AS2ReceiverHandler: sent MDN [automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed] [6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:18:51 OpenAS2Exception: Error occurred:: Verification failed
Sources: {message=Message From:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}To:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}
Headers:{Host=xxx.xxx.xxx.xxx:38890, Accept-Encoding=gzip, deflate, User-Agent=IP*Works! V8 EDI Component - www.nsoftware.com, Connection=close, Content-Length=24863, AS2-To=MyCompany, AS2-From=TRADINGPARTNER, AS2-Version=1.2, EDIINT-Features=multiple-attachments, Date=Mon, 16 May 2016 17:18:34 GMT, Message-Id=6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04, Disposition-Notification-To=AS2@TRADINGPARTNER.com, Mime-Version=1.0, Content-Type=multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="boundaryE6t5", Content-Disposition=null}
Attributes:{HTTP_REQUEST_TYPE=POST, destination_ip=/192.168.0.4, HTTP_REQUEST_URL=/, source_ip=/xxx.xxx.xxx.xxx, destination_port=38890, source_port=65160}
MDN:MDN From:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}To:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}
Headers:{Date=Mon, 16 May 2016 12:18:51 -0500, From=sstapp@nistx.com, Message-Id=OPENAS2-16052016121851-0500-6075@MyCompany_TRADINGPARTNER, Subject=Your Requested MDN Response, MIME-Version=1.0, Content-Type=multipart/report; report-type=disposition-notification;
boundary="----=_Part_0_6149506.1463419131200", AS2-To=TRADINGPARTNER, AS2-From=MyCompany, AS2-Version=1.1, Server=OpenAS2 v1.3.6, Content-Length=760}
Attributes:{DISPOSITION=automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed, MIC=null, ORIGINAL_MESSAGE_ID=6639f3c8-d2d9-4c47-a265-bdc9814b8f07@9364adb0-1a43-48b9-8785-42d54ddd0c04, ORIGINAL_RECIPIENT=rfc822; MyCompany, REPORTING_UA=OpenAS2 v1.3.6@/192.168.0.4:38890, FINAL_RECIPIENT=rfc822; MyCompany}
Text:
The message sent to Recipient MyCompany on Mon, 16 May 2016 17:18:34 GMT with Subject null has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. Authentication of the originator of the message failed.
}
org.openas2.DispositionException: automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
Caused by: java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
... 3 more
05/16/16 12:18:51 OpenAS2Exception: Error occurred:: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121851.9ab8c52b-3956-4171-a256-940b3458b04f
Sources: {}
org.openas2.message.InvalidMessageException: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121851.9ab8c52b-3956-4171-a256-940b3458b04f
at org.openas2.processor.receiver.NetModule.handleError(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:21 AS2ReceiverHandler: incoming connection xxx.xxx.xxx.xxx 65288
05/16/16 12:19:21 AS2ReceiverHandler: received 24863 bytes in 0.125 seconds at 194.248 KBps xxx.xxx.xxx.xxx 65288 [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 AS2ReceiverHandler: decrypting ::: [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 BCCryptoHelper: Extracted X500 info:: PRINCIPAL : EMAILADDRESS=MyCompany@myCorp.com, CN=MyCompany, OU=IT, O=MyCompany =MyCompany, ST=Texas, C=US :: NAME : 1.2.840.113549.1.9.1=#16134e617661736f7461406d79436f72702e636f6d,CN=MyCompany,OU=IT,O=MyCompany Industrial Supply,L=MyCompany,ST=Texas,C=US
05/16/16 12:19:21 BCCryptoHelper: Compression check. MIME Base Content-Type:multipart/signed
05/16/16 12:19:21 BCCryptoHelper: Compression check. SMIME-TYPE:null
05/16/16 12:19:21 BCCryptoHelper: Compressed MIME msg AFTER COMPRESSION Content-Disposition:null
05/16/16 12:19:21 BCCryptoHelper: Check for compressed data failed on BASE content type: multipart/signed
05/16/16 12:19:21 AS2ReceiverHandler: verifying signature [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 BCCryptoHelper: Signer verification failed: message-digest attribute value does not match calculated value
05/16/16 12:19:21 org.bouncycastle.cms.CMSSignerDigestMismatchException: message-digest attribute value does not match calculated value
at org.bouncycastle.cms.SignerInformation.doVerify(Unknown Source)
at org.bouncycastle.cms.SignerInformation.verify(Unknown Source)
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:21 AS2ReceiverHandler: Error decrypting received message: Verification failed [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:21 DefaultProcessor: Processor searching for module handler for action: storemdn
05/16/16 12:19:21 MessageParameters: Attempting filename extraction from Content-disposition: null
05/16/16 12:19:21 AS2ReceiverHandler: sent MDN [automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed] [741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:21 OpenAS2Exception: Error occurred:: Verification failed
Sources: {message=Message From:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}To:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}
Headers:{Host=xxx.xxx.xxx.xxx:38890, Accept-Encoding=gzip, deflate, User-Agent=IP*Works! V8 EDI Component - www.nsoftware.com, Connection=close, Content-Length=24863, AS2-To=MyCompany, AS2-From=TRADINGPARTNER, AS2-Version=1.2, EDIINT-Features=multiple-attachments, Date=Mon, 16 May 2016 17:19:05 GMT, Message-Id=741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04, Disposition-Notification-To=AS2@TRADINGPARTNER.com, Mime-Version=1.0, Content-Type=multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="boundaryE6t5", Content-Disposition=null}
Attributes:{HTTP_REQUEST_TYPE=POST, destination_ip=/192.168.0.4, HTTP_REQUEST_URL=/, source_ip=/xxx.xxx.xxx.xxx, destination_port=38890, source_port=65288}
MDN:MDN From:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}To:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}
Headers:{Date=Mon, 16 May 2016 12:19:21 -0500, From=sstapp@nistx.com, Message-Id=OPENAS2-16052016121921-0500-3627@MyCompany_TRADINGPARTNER, Subject=Your Requested MDN Response, MIME-Version=1.0, Content-Type=multipart/report; report-type=disposition-notification;
boundary="----=_Part_1_28678543.1463419161542", AS2-To=TRADINGPARTNER, AS2-From=MyCompany, AS2-Version=1.1, Server=OpenAS2 v1.3.6, Content-Length=763}
Attributes:{DISPOSITION=automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed, MIC=null, ORIGINAL_MESSAGE_ID=741f6f2e-2611-491e-9cfb-990f1afe2760@9364adb0-1a43-48b9-8785-42d54ddd0c04, ORIGINAL_RECIPIENT=rfc822; MyCompany, REPORTING_UA=OpenAS2 v1.3.6@/192.168.0.4:38890, FINAL_RECIPIENT=rfc822; MyCompany}
Text:
The message sent to Recipient MyCompany on Mon, 16 May 2016 17:19:05 GMT with Subject null has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. Authentication of the originator of the message failed.
}
org.openas2.DispositionException: automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
Caused by: java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
... 3 more
05/16/16 12:19:21 OpenAS2Exception: Error occurred:: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121921.1e6bf385-f874-4ea5-891b-384a7cceb84c
Sources: {}
org.openas2.message.InvalidMessageException: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121921.1e6bf385-f874-4ea5-891b-384a7cceb84c
at org.openas2.processor.receiver.NetModule.handleError(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:51 AS2ReceiverHandler: incoming connection xxx.xxx.xxx.xxx 49223
05/16/16 12:19:51 AS2ReceiverHandler: received 24863 bytes in 0.125 seconds at 194.248 KBps xxx.xxx.xxx.xxx 49223 [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 AS2ReceiverHandler: decrypting ::: [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 BCCryptoHelper: Extracted X500 info:: PRINCIPAL : EMAILADDRESS=MyCompany@myCorp.com, CN=MyCompany, OU=IT, O=MyCompany =MyCompany, ST=Texas, C=US :: NAME : 1.2.840.113549.1.9.1=#16134e617661736f7461406d79436f72702e636f6d,CN=MyCompany,OU=IT,O=MyCompany Industrial Supply,L=MyCompany,ST=Texas,C=US
05/16/16 12:19:51 BCCryptoHelper: Compression check. MIME Base Content-Type:multipart/signed
05/16/16 12:19:51 BCCryptoHelper: Compression check. SMIME-TYPE:null
05/16/16 12:19:51 BCCryptoHelper: Compressed MIME msg AFTER COMPRESSION Content-Disposition:null
05/16/16 12:19:51 BCCryptoHelper: Check for compressed data failed on BASE content type: multipart/signed
05/16/16 12:19:51 AS2ReceiverHandler: verifying signature [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 BCCryptoHelper: Signer verification failed: message-digest attribute value does not match calculated value
05/16/16 12:19:51 org.bouncycastle.cms.CMSSignerDigestMismatchException: message-digest attribute value does not match calculated value
at org.bouncycastle.cms.SignerInformation.doVerify(Unknown Source)
at org.bouncycastle.cms.SignerInformation.verify(Unknown Source)
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:51 AS2ReceiverHandler: Error decrypting received message: Verification failed [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
05/16/16 12:19:51 DefaultProcessor: Processor searching for module handler for action: storemdn
05/16/16 12:19:51 MessageParameters: Attempting filename extraction from Content-disposition: null
05/16/16 12:19:51 AS2ReceiverHandler: sent MDN [automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed] [3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04]
05/16/16 12:19:51 OpenAS2Exception: Error occurred:: Verification failed
Sources: {message=Message From:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}To:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}
Headers:{Host=xxx.xxx.xxx.xxx:38890, Accept-Encoding=gzip, deflate, User-Agent=IP*Works! V8 EDI Component - www.nsoftware.com, Connection=close, Content-Length=24863, AS2-To=MyCompany, AS2-From=TRADINGPARTNER, AS2-Version=1.2, EDIINT-Features=multiple-attachments, Date=Mon, 16 May 2016 17:19:35 GMT, Message-Id=3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04, Disposition-Notification-To=AS2@TRADINGPARTNER.com, Mime-Version=1.0, Content-Type=multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="boundaryE6t5", Content-Disposition=null}
Attributes:{HTTP_REQUEST_TYPE=POST, destination_ip=/192.168.0.4, HTTP_REQUEST_URL=/, source_ip=/xxx.xxx.xxx.xxx, destination_port=38890, source_port=49223}
MDN:MDN From:{as2_id=MyCompany, email=sstapp@nistx.com, name=MyCompany, x509_alias=MyCompany}To:{as2_id=TRADINGPARTNER, email=support@TRADINGPARTNER.com, name=TRADINGPARTNER, x509_alias=TRADINGPARTNER}
Headers:{Date=Mon, 16 May 2016 12:19:51 -0500, From=sstapp@nistx.com, Message-Id=OPENAS2-16052016121951-0500-5570@MyCompany_TRADINGPARTNER, Subject=Your Requested MDN Response, MIME-Version=1.0, Content-Type=multipart/report; report-type=disposition-notification;
boundary="----=_Part_2_5503831.1463419191900", AS2-To=TRADINGPARTNER, AS2-From=MyCompany, AS2-Version=1.1, Server=OpenAS2 v1.3.6, Content-Length=760}
Attributes:{DISPOSITION=automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed, MIC=null, ORIGINAL_MESSAGE_ID=3e947733-4435-489e-be89-3378b2ac22ca@9364adb0-1a43-48b9-8785-42d54ddd0c04, ORIGINAL_RECIPIENT=rfc822; MyCompany, REPORTING_UA=OpenAS2 v1.3.6@/192.168.0.4:38890, FINAL_RECIPIENT=rfc822; MyCompany}
Text:
The message sent to Recipient MyCompany on Mon, 16 May 2016 17:19:35 GMT with Subject null has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. Authentication of the originator of the message failed.
}
org.openas2.DispositionException: automatic-action/MDN-sent-automatically; processed/Error:integrity-check-failed
at org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
Caused by: java.security.SignatureException: Verification failed
at org.openas2.lib.helper.BCCryptoHelper.verify(Unknown Source)
... 3 more
05/16/16 12:19:51 OpenAS2Exception: Error occurred:: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121951.b8ef0c24-2eb9-4b92-ae5c-4ae26a4e4a0f
Sources: {}
org.openas2.message.InvalidMessageException: Stored invalid message to C:\OpenAS2 1-3-6\bin..\config..\data\inbox\error\20160516121951.b8ef0c24-2eb9-4b92-ae5c-4ae26a4e4a0f
at org.openas2.processor.receiver.NetModule.handleError(Unknown Source)
at org.openas2.processor.receiver.AS2ReceiverHandler.handle(Unknown Source)
at org.openas2.processor.receiver.NetModule$ConnectionThread.run(Unknown Source)
Please try this version and confirm if the issue still exists. If it does then run the OpenAS2 app in TRACE log mode with the following flag added to the startup command and upload the log please:
-DlogRxdMsgMimeBodyParts=true
You should upgrtade to version 2.0.0 that fixes a number of very long standing bugs in OpenAS2 if you are still using the app.
It would be appreciated if you would reveiew the app here if you are still using it: https://sourceforge.net/projects/openas2/reviews