phax / as2-server

A standalone Java AS2 server - see as2-lib for the generic parts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decryption error by sending to a remote server AS2

opened this issue · comments

Hello,
I get an error decryption when I send data to remote Server AS2. Is it a problem of certificate or other?
Thank you.

Error while parsing AS2 message: DECRYPTION_ERROR
Message id: <Test-10072014141215+0300-0086@A_B>
Error caused by: com.seeburger.ediint.edi.EDIMessageException: message decryption failed: No keys configured for usage: Decryption key of AS2 own address with ID 7ad345a1-f154-11e3-91db-219dc0a8af01

Hi.
I cant tell you. At what part of the message exchange does it happen? During msg exchange or during MDN exchange??
//Philip

On 14. Juli 2014 09:46:02 MESZ, tulyp notifications@github.com wrote:

Hello,
I get an error decryption when I send data to remote Server AS2. Is it
a problem of certificate or other?
Thank you.

Error while parsing AS2 message: DECRYPTION_ERROR
Message id: <Test-10072014141215+0300-0086@A_B>
Error caused by: com.seeburger.ediint.edi.EDIMessageException: message
decryption failed: No keys configured for usage: Decryption key of AS2
own address with ID 7ad345a1-f154-11e3-91db-219dc0a8af01


Reply to this email directly or view it on GitHub:
#3

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Ich bitte Tippfehler zu ignorieren.:-)

I get this message on the server once the message sent. I use only the client (TestClient).
In my client, I get this message:

[2014-07-14 13:47:34,896] [INFO ] [main] OpenASException terminated: Message was sent but an error occured while receiving the MDN; sources: {message=Message From:[StringMap@0x2c661664: attrs={as2_id=SERAY, email=email, x509_alias=musa}]
To:[StringMap@0x62481601: attrs={as2_id=MUSA2, x509_alias=musa}]
Headers:{Message-Id=<Test-14072014134721+0300-1545@SERAY_MUSA2>, Subject=test msj tuly local, Content-Type=application/pkcs7-mime; name="smime.p7m"; smime-type=enveloped-data}
Attributes:[StringMap@0x6a9cce0f: attrs={as2_id=MUSA2, destination_ip=192.168.1.49, as2_url=http://192.168.1.49:7853/SeeburgerAS2/AS2Controller, email=email, destination_port=7853}]
MDN:MDN From:[StringMap@0x5c9c7177: attrs={}]To:[StringMap@0x22dd6b21: attrs={}]
Headers:{Date=Mon, 14 Jul 2014 10:47:15 GMT, Content-Type=text/html, X-Powered-By=Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5, Server=Apache-Coyote/1.1, Content-Length=840}
Attributes:[StringMap@0x76a45568: attrs={}]
Text:
null
}
Caused by: com.helger.as2lib.exception.WrappedException: java.lang.NullPointerException -- com.helger.as2lib.exception.OpenAS2Exception.log(OpenAS2Exception.java:106)
[2014-07-14 13:47:34,897] [INFO ] [main]
originalId: <Test-14072014134721+0300-1545@SERAY_MUSA2>
receivedId: null
disposition: null
text: null
-- com.helger.as2.test.EdiIntAs2Client.sendSync(EdiIntAs2Client.java:119)

Do you have a certificate for partner SERAY in your keystore? To my understanding the certificate is currently only checked upon MDN receival....

On 14. Juli 2014 12:57:54 MESZ, tulyp notifications@github.com wrote:

I get this message on the server once the message sent. I use only the
client (TestClient).
In my client, I get this message:

[2014-07-14 13:47:34,896] [INFO ] [main] OpenASException terminated:
Message was sent but an error occured while receiving the MDN; sources:
{message=Message From:[StringMap@0x2c661664: attrs={as2_id=SERAY,
email=email, x509_alias=musa}]
To:[StringMap@0x62481601: attrs={as2_id=MUSA2, x509_alias=musa}]
Headers:{Message-Id=<Test-14072014134721+0300-1545@SERAY_MUSA2>,
Subject=test msj tuly local, Content-Type=application/pkcs7-mime;
name="smime.p7m"; smime-type=enveloped-data}
Attributes:[StringMap@0x6a9cce0f: attrs={as2_id=MUSA2,
destination_ip=192.168.1.49,
as2_url=http://192.168.1.49:7853/SeeburgerAS2/AS2Controller,
email=email, destination_port=7853}]
MDN:MDN From:[StringMap@0x5c9c7177: attrs={}]To:[StringMap@0x22dd6b21:
attrs={}]
Headers:{Date=Mon, 14 Jul 2014 10:47:15 GMT, Content-Type=text/html,
X-Powered-By=Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0
date=200610162339)/Tomcat-5.5, Server=Apache-Coyote/1.1,
Content-Length=840}
Attributes:[StringMap@0x76a45568: attrs={}]
Text:
null
}
Caused by: com.helger.as2lib.exception.WrappedException:
java.lang.NullPointerException --
com.helger.as2lib.exception.OpenAS2Exception.log(OpenAS2Exception.java:106)
[2014-07-14 13:47:34,897] [INFO ] [main]
originalId: <Test-14072014134721+0300-1545@SERAY_MUSA2>
receivedId: null
disposition: null

text: null

com.helger.as2.test.EdiIntAs2Client.sendSync(EdiIntAs2Client.java:119)


Reply to this email directly or view it on GitHub:
#3 (comment)

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Ich bitte Tippfehler zu ignorieren.:-)

Hi, yes I can successfully send to the remote server. The configuration on server was not complete.