Skip to content

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

Merged
chrisvest merged 4 commits into4.1from
jdk_props
Sep 13, 2022
Merged

Respect jdk.tls.client.protocols and jdk.tls.server.protocols#12797
chrisvest merged 4 commits into4.1from
jdk_props

Conversation

@normanmaurer
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants