-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot configure MDN signing #99
Comments
Thanks for your detailed explanation and the links to all the details.
that is some weird issue with the Spring Classloader (at least on Windows). I added a fix in ph-commons 9.3.9 to capture this exception internally. As a work around I copied the keystore file to the root folder of my drive. Next thing I stumbled upon was the same names of the keystore (keystore.p12) so I renamed them to have unique names. Than I had an issue finding the correct certificate, because the code was looking for "A" and Portecle showed me only "b", and because PKCS12 keystore aliases are case sensitive, it failed. I directly used the latest SNAPSHOT. I'm continuing my investigation from there.... takes some time |
Thank you for quick response. :) In theory no additional changes should be needed in order to run the examples. I just tried in the below way. Run the AS2 Client: Run the AS2 Server: Make AS2 Client to send the request: Of course if you build the jar files and then run them from the command line it is a bit trickier to use the debugger with them. But probably the debugger is not needed even, it is possible to just add some logging, say, before the As for the aliases, I am not sure there is a problem with them in the example. I always use the upper case naming for aliases, see here and here. And in the code is looking for them in upper case, see here for AS2 Client. For AS2 Server I believe that your library uses sender and receiver IDs as the aliases, which are in upper cases as well. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The problem was a partnership factory overwriting partnership configuration with an old value, because of some fake name. This fixed in 4.5.4 |
Good afternoon and thank you for your library.
I still cannot configure MDN signing (see #98). I suspect there can be a bug in the library.
I run AS2 Client and AS2 Server locally. AS2 Client represents a company A, the sender. AS2 Server represents a company B, the receiver. AS2 Client has public and private keys of company A and public key of company B. AS2 Server has public and private keys of company B and public key of company A.
A sends an AS2 message to B. An unexpected exception happens when B tries to sign the MDN.
Steps to reproduce:
com.helger.as2lib.util.AS2Helper#createMDNData
method,ex.terminate ();
line.curl -X POST http://localhost:8081/outgoing
in a command line.Expected: the breakpoint from the 2nd step is not reached. Actual: the breakpoint is reached because the
com.helger.as2lib.cert.KeyNotFoundException
happens.The text was updated successfully, but these errors were encountered: