Verification of digital signature of inbound AS2 message failed Verification failed

[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Inbound transmission is a AS2 message [mYPartner-mycompany], raw message size: 2.83 KB.
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Inbound AS2 message is not encrypted.
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Inbound AS2 message is signed.
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] The sender used the algorithm "SHA-256" to sign the inbound AS2 message.
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Using certificate "PartnerA Testing" to verify inbound AS2 message signature.
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Verification of digital signature of inbound AS2 message failed Verification failed
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04]
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Signature certificate information:
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Serial number (DEC): 1989011508237000828
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Issuer: C=US,ST=New York,L=New York,O=PartnerA,OU=QA,CN=PartnerA Testing
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04]
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Verification certificate information:
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Serial number (DEC): 1989011508237000828
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Serial number (HEX): 1B9A636DB2A1607C
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Finger print (SHA-1): 37:8D:95:67:BD:A7:5B:C0:AC:39:1B:E2:31:D0:63:B6:E0:0F:3F:04
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Valid from: 3/5/24
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Valid to: 2/12/32
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Issuer: CN=PartnerA Testing, OU=QA, O=PartnerA, L=New York, ST=New York, C=US
[3:21:42 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Generating outbound MDN, setting message id to "mendelson_opensource_AS2-COMMUN-1709648502163-16@mycompanyAS2_AS2Ident".
[3:21:46 PM] [mendelson_opensource_AS2-COMMUN-1709648502163-16@mycompanyAS2_AS2Ident] Outbound MDN has not been signed.
[3:21:46 PM] [mendelson_opensource_AS2-COMMUN-1709648502163-16@mycompanyAS2_AS2Ident] Outbound MDN created for AS2 message "27325d47-44f5-406b-8542-6f5721e3fe04", state set to [processed/error: authentication-failed].
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Outbound MDN details: Error verifying the senders digital signature: Verification failed
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04]
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Signature certificate information:
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Serial number (DEC): 1989011508237000828
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Issuer: C=US,ST=New York,L=New York,O=PartnerA,OU=QA,CN=PartnerA Testing
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04]
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Verification certificate information:
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Serial number (DEC): 1989011508237000828
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Serial number (HEX): 1B9A636DB2A1607C
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Finger print (SHA-1): 37:8D:95:67:BD:A7:5B:C0:AC:39:1B:E2:31:D0:63:B6:E0:0F:3F:04
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Valid from: 3/5/24
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Valid to: 2/12/32
[3:21:46 PM] [27325d47-44f5-406b-8542-6f5721e3fe04] Issuer: CN=PartnerA Testing, OU=QA, O=PartnerA, L=New York, ST=New York, C=US.
[3:21:46 PM] [mendelson_opensource_AS2-COMMUN-1709648502163-16@mycompanyAS2_AS2Ident] Synchronous MDN sent as answer to message 27325d47-44f5-406b-8542-6f5721e3fe04.

Whats is wrong? I have self-signed certificate of my partner.

Forum
AS2

Comments

My partner send this http data:
POST / HTTP/1.1
Host: 192.168.110.91:500
AS2-Version: 1.2
AS2-From: AS2Ident
AS2-To: mycompanyAS2
Subject: Test
Date: Tue, 05 Mar 2024 15:21:40 GMT
From: sender@as2.server.com
Disposition-Notification-To: sender@as2.server.com
Message-ID: f7767392-438e-4e83-bceb-79d480823204
Recipient-Address: http://192.168.110.91:500/
MIME-Version: 1.0
EDIINT-Features: multiple-attachments
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="STARTBOUND_79b2c35f-3317-47ea-9933-9f7957fbbc8d_ENDBOUND"
Content-Length: 2895

--STARTBOUND_79b2c35f-3317-47ea-9933-9f7957fbbc8d_ENDBOUND
Content-Type: application/EDIFACT
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=edi.dat

dGVzdA==
--STARTBOUND_79b2c35f-3317-47ea-9933-9f7957fbbc8d_ENDBOUND
Content-Type: application/pkcs7-signature; name=smime.p7s; smime-type=signed-data
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=smime.p7s
Content-Description: S/MIME Cryptographic Signature

MIIG3gYJKoZIhvcNAQcCoIIGzzCCBssCAQExDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcBoIIEgzCCBH8wggLnoAMCAQICCBuaY22yoWB8MA0GCSqGSIb3DQEBCwUAMG4xCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhOZXcgWW9yazERMA8GA1UEBxMITmV3IFlvcmsxETAPBgNVBAoTCFBhcnRuZXJBMQswCQYDVQQLEwJRQTEZMBcGA1UEAxMQUGFydG5lckEgVGVzdGlu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