Code Monkey home page Code Monkey logo

Comments (4)

phax avatar phax commented on June 11, 2024

The other server sent an invalid MDN, because no MIC is contained:

MIC IS NOT MATCHED, original mic: 'IpjGylckS2ovHgk995aA3SU2Jlw=, sha1' return mic: 'null' [<JavaAS2Client_phaxAS2Lib-17052018091234+0000-5617@788157159_CTS_AS2_ZZFDATST>]

do you have access to the other server logfiles?

from as2-lib.

svnswyahoo avatar svnswyahoo commented on June 11, 2024

Thanks for the quick response!

Unfortunately - no, since it is a FDA (US FDA) AS2 server. Is there some other information I may provide?

I just realized that the self signed certificate that we are using at our end (one containing the private key) is using SHA-1 while the certificate we received from FDA is using SHA-256. As you may have noticed, in the code I am using SHA-1 for the signature algorithm.

Details of Client Certificate received from FDA

Version: 3
:
:
Valid from: August 22, 2016 6:23 AM
Valid until: August 22, 2018 6:23 AM
Public key: 2048 RSA
Signature algorithm: SHA256WITHRSA
Fingerprint (MD5): 4A:48:CD:E2:AE:60:28:44:B6:C2:A9:72:89:AF:C4:E9
Fingerprint (SHA-1): E5:F5:AD:6E:AF:4B:12:B7:A6:72:64:7F:99:F5:77:B1:67:E2:2F:66

Self Signed certificate details that we sent FDA:

Version: 3
:
:
Valid from: May 4, 2018 4:48 PM
Valid until: May 4, 2019 4:48 PM
Public key: 1024 RSA
Signature algorithm: SHA1WITHRSA
Fingerprint (MD5): C2:B0:E0:CD:09:C2:5D:A6:15:1D:D6:0C:94:CF:95:D3
Fingerprint (SHA-1): AC:F8:AF:21:E3:16:5E:53:DF:43:87:4A:20:0F:8F:00:3A:C8:FB:C5

Could this cause the error?

from as2-lib.

phax avatar phax commented on June 11, 2024

Hi. Sorry for the delay. Was on vacation.
Imho the algorithm of the certificate hash is independent of the MIC algorithm you choose.
Are you sure, that the receiving system trusts your self-signed certificate?

from as2-lib.

stale avatar stale commented on June 11, 2024

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.

from as2-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.