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

Cipher Supprt and disabling TLS version #875

Closed
sakthiraam opened this issue Sep 7, 2023 · 1 comment
Closed

Cipher Supprt and disabling TLS version #875

sakthiraam opened this issue Sep 7, 2023 · 1 comment

Comments

@sakthiraam
Copy link

sakthiraam commented Sep 7, 2023

Hi,
Good Day!

We are trying to specify strong cipher suites and TLS version via system property but it is not recognized by the JMX exporter. We used the below system properties

-Djavax.net.ssl.protocol=TLSv1.2
-Djavax.net.ssl.cipherSuites=

Is there any other property which we can set to make sure JMX exporter is using the specified version of TLS and Cipher Suites.

I can see all the PROTOCOLS are specified in the source code. Seeing if we have an option to override it

private static final String[] PROTOCOLS = {"TLSv1.3", "TLSv1.2", "TLSv1.1", "TLSv1"};

EDIT: Fixed link to code (dhoard)

@dhoard
Copy link
Collaborator

dhoard commented Sep 8, 2023

@sakthiraam As you pointed out, The code (as written) tries to use the most secure TLS version supported by the JVM.

You should be able to change TLS/cipher suites by using system properties...

jdk.tls.client.protocols
jdk.certpath.disabledAlgorithms
jdk.tls.disabledAlgorithms

... or by editing your JVM java.security file.

I'm concerned that if we add this type of configuration to the exporter YAML we could end up in a scenario where a mismatch would cause problems that are hard to debug.

Example:

the JVM is set to only use TLSv1.3 and the exporter YAML is configured to use TLSv1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants