Menu

#457 Provide a custom 'SSLSocketFactory'

Connection
open
Zhang Ze
None
5
2023-04-29
2021-11-23
No

Hello JTOpen team,

Our (development) IBM i machines have certificates that are signed by a CA that is internal to the company and our customers may have the same situation.
This means that a secure connection with JTOpen will not work by default, as the JVM will reject the host's certificate.
The alternative would be to provide the command-line System Properties to point to a trust store. However, due to technical reasons, we would like to avoid that.

We had a look at the JTOpen code base and adding a provision to supply a custom 'SSLSocketFactory' does not look that hard.
It would require some changes in classes: 'PortMapper', 'SecureAS400', 'SocketContainerJSSE' and 'SSLOptions'.
As soon as it is possible to provide a custom 'SSLSocketFactory', the SSL context is available to provide the functionality we like.

If we would provide patches for these 4 classes, would the JTOpen team be willing to apply them into the JTOpen code base, provided they meet the team's standards?

Regards,
Marcel Romijn

Discussion

  • Mathieu Veurman

    Mathieu Veurman - 2022-06-07

    Hello, any news on this? I see newer issues get updates, and this one doesn't get any attention. We are willing to provide all the code for this. Maybe we can become an official contributor?

     
  • John Eberhard

    John Eberhard - 2022-07-06
    • assigned_to: Zhang Ze
     
  • Norbolsa

    Norbolsa - 2022-07-19

    It would be great if this was built into into the driver

     
  • Marcel Romijn

    Marcel Romijn - 2022-08-09

    Hello,

    Our (hopefully temporary) solution now is to clone the JTOpen sources, make the changes we need and use that in our product.
    In alignment with the license, we will make the changed sources public when we release the product that uses them. Maybe we will make the changed sources public before our product is released.

    But ultimately, having these changes in the original JTOpen code base would be more convenient and efficient.

    Regards,
    Marcel Romijn

     
  • Zhang Ze

    Zhang Ze - 2022-09-12

    I am looking at this. Sorry, only IBMer can be a contributor (some legal issues).

     
  • Marcel Romijn

    Marcel Romijn - 2022-09-21

    Hello Zhang Ze,

    I understand contributions can only be made by IBM :-)
    If the repository of JTOpen would be Git, I could present a PR with the changes we would need.
    But since JTOpen is in a SVN repository, I don't know how to present our changes to a contributor.
    Maybe by providing a patch somehow?

    Kind regards,
    Marcel Romijn

     
  • Zhang Ze

    Zhang Ze - 2022-09-21

    Hi,
    I am working with internal team to confirm if the contrabution process still work.
    FYI, http://jt400.sourceforge.net/develop.html#overview, If it still work, You can become a contributor by signing a License agreement. I will let you know the result. Thank you.

     
  • Zhang Ze

    Zhang Ze - 2022-09-27

    Hello Marcel Romijn,
    Firstly, You need send an e-mail to the Core Team(jeber@us.ibm.com and zezhang@cn.ibm.com) a signed JTOpen Contributor License Agreement.

    Then, you can provide the patch to us and I would merge it in. Thank you.

     
  • Marcel Romijn

    Marcel Romijn - 2022-09-27

    Hi Zhang Ze,

    Thanks for sending me the link to the Contributor License Agreement.
    I'll have to run it through my manager and optionally the legal department.
    If all lights turn green, I will e-mail the signed form.

    Kind regards,
    Marcel Romijn

     
  • Jesse Gorzinski

    Jesse Gorzinski - 2023-04-29

    @mromijn, I like this idea. We are in the process of moving JTOpen to GitHub. If you have an account there, can you please open an issue at https://github.com/IBM/JTOpen/ ?

     

Log in to post a comment.

MongoDB Logo MongoDB