Forum Stats

  • 3,837,116 Users
  • 2,262,228 Discussions
  • 7,900,208 Comments

Discussions

Unable to connect with java7 Jconsole to JMX server secured over TLS1.2

Hi all,

I didn't find any way to manage java7 jconsole connect to server JMX server (the server application runs java8 jre) when JMX secured over TLS1.2.

the properties that specified on server side:

-Dcom.sun.management.jmxremote.ssl=true

-Djavax.net.ssl.keyStore=keystore.jks

-Djavax.net.ssl.keyStorePassword=keyStorePassword

-Djavax.net.ssl.keyStoreType=JKS

-Dcom.sun.management.jmxremote.ssl.enabled.protocols=TLSv1.2

-Dcom.sun.management.jmxremote.ssl.enabled.cipher.suites=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA

the properties that specified on cleint side:

-Djavax.net.ssl.trustStorePassword=trustStorePassword

-Djavax.net.ssl.trustStore=trustStore.jks

When I'm trying to connect with java7 Jconsole ( jconsole -J-Djavax.net.ssl.trustStore=trustStore.jks -J-Djavax.net.ssl.trustStorePassword=trustStorePassword), the following handshake exception is raised:

handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

Exception in thread "main" java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

       javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

note that the same execution with java8 jconsole is working well.

Any idea guys?

This discussion has been closed.