-
Notifications
You must be signed in to change notification settings - Fork 46
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
Code change requirement when moving from ssl-1.0 to transportSecurity-1.0 (=Migrating from JavaEE to JakartaEE) #6916
Comments
Hi @una-tapa The corresponding SSL info on the open liberty site is here: The second paragraph on this page describes how transport security obtains the SSL Context, that it returns the JSSE context and sets a custom SSL Socket Factory w/ the Liberty default context. We wroked with Alaine to add this statement last year. Not sure if it will need an edit in light of this case. I added the third paragraph to redirect to a new troubleshooting item for moving btwn ssl-1.0 and transportSecurity-1.0 w/r/t obtaining the default SSLContext. This section includes the suggestion to use However, I wonder if these two statements will be confusing to customers as they seem to suggest two different things- on the transportSecurity page
in the new troubleshooting note
Let me know if any further edits are needed to correct inconsistencies or make the distinction between the two suggestions more clear. On the WL side, I added a link to this information from the top of the SSL page, per our strategy. I also added a troubleshooting note to the ssl/TLS troubleshooting info and linked to it from the page at the point you suggested. Let me know if any further edits are needed- when you're satisfied with the updates you can sign off by adding the |
Hi, David Thank you for the update. The troubleshooting addition looks great! I also appreciate your finding the inconsistency in the transportSecurity page. I agree it is very confusing. Please help correct the page. There was an unfortunate doc update in the past in this page. All of ssl-1.0 description was updated with transportSecurity-1.0 description by using replaceAll. Several customers opened support cases requesting to clarify. For some reason, the page could not be reverted back to the previous version. As a result, Alaine was going through the page to find which transportSecurity-1.0 needs to be changed back to ssl-1.0. The first Transport Security Feature needs to be Secure Socket Layer feature. The following write-up in bold is the changes I would like to propose. It should be consistent with the rest of the page, and with the new paragraph in the troubleshooting page. Please improve the last sentence to fit the doc process. [Proposal - example] |
Thanks Hiroko- I see the source of the confusion now, but I'm still confused. :) Per your suggestion in the previous comment:
But the troubleshoting note says
so - when you use |
Hi, @dmuelle Thanks for pointing that there's still inconsistency. That's so true. My previous write up should have included another change The following is how I remember the difference:
The SSLConnection for Liberty's default SSL configuration is now JSSEHelper.getInstance().getSSLContext(null, null, null) , It is great we have another pair of eyes to make sure all the confusion gets resolved. Hope I did better job this time.
|
Thanks for this information, I rewrote the information based on your recommendation, with a few tweaks Let me know if any further edits are needed. If not, you can sign off by adding the |
Hi, @dmuelle Thank you so much David. "With a few treaks" part looks fantastic. |
I am opening this issue per suggestion in this internal Slack discussion.
During JavaEE to JakartaEE migration, the server's
ssl-1.0
feature is automatically switched totransportSecurity-1.0
.It was a design decision that JavartaEE does not provide ways to go back to
ssl-1.0
feature.A user reported that his application no longer works after moving from JavaEE to JakartaEE. Since ssl-1.0 feature is no longer available, the issue was resolved by the customer making code change in his application.
I would like Liberty doc to add the following information:
I did not have luck finding an existing page for this topic in OpenLiberty documentation. Please help us find the place (or we might need to keep using the following WebSphere Liberty documentation)
For WebSphere Liberty, I found the behavior difference of
ssl-1.0
andtransportSecurity-1.0
is discussed in detail in the following page https://www.ibm.com/docs/en/was-liberty/core?topic=liberty-enabling-ssl-communication-inThere is an existing note below:
Note: Due to the nature of the JDK, if you are changing from the transportSecurity-1.0 feature to the ssl-1.0 feature or from the ssl-1.0 feature to the transportSecurity-1.0 feature, the Liberty server must be restarted to use the feature to its complete functionality.
Under this note, I would like the following added with a link to a new info (above section)
The customer was using the Liberty dev experience, he had to look for the following dependency to the pom.xml file to use JSSEHelper API. I thought it would be nice if our doc has this info with the required code change details. But it could be too much information. The following is for the doc team's evaluation.
For OpenLiberty, the following dependency needs to be added to be able to call JSSEHelper API without compile error.
For WebSphere Liberty, a similar dependency would be needed. It should be something like below.
Additional note:
The migration team has been notified and they are agreeable to add a rule to the migration tool.
The text was updated successfully, but these errors were encountered: