Skip to content
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

Respect jdk.tls.client.protocols and jdk.tls.server.protocols #12797

Merged
merged 4 commits into from Sep 13, 2022
Merged

Conversation

normanmaurer
Copy link
Member

Motivation:

We should respect jdk.tls.client.protocols and jdk.tls.server.protocols system property to allow easily to enable / disable protocols

Modifications:

Respect the system properties

Result:

Be able to easily enable / disable TLS protocols in a consistent way

Motivation:

We should respect jdk.tls.client.protocols and jdk.tls.server.protocols system property to allow easily to enable / disable protocols

Modifications:

Respect the system properties

Result:

Be able to easily enable / disable TLS protocols in a consistent way
Set<String> protocols = new HashSet<String>();
for (String proto : protocolsString.split(",")) {
String p = proto.trim();
if (OpenSsl.SUPPORTED_PROTOCOLS_SET.contains(p)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should log this when the protocol is defined in the jdk.tls.server.protocols but not supported by OpenSSL.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JDK is not logging as well... So I think we should also not do it.

@normanmaurer normanmaurer added this to the 4.1.82.Final milestone Sep 13, 2022
@chrisvest chrisvest merged commit 93a7d4f into 4.1 Sep 13, 2022
@chrisvest chrisvest deleted the jdk_props branch September 13, 2022 16:42
chrisvest pushed a commit that referenced this pull request Sep 13, 2022
Motivation:

We should respect jdk.tls.client.protocols and jdk.tls.server.protocols system property to allow easily to enable / disable protocols

Modifications:

Respect the system properties

Result:

Be able to easily enable / disable TLS protocols in a consistent way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants