<div dir="ltr">Hi serviceability-dev.<br><br>I would ask about the JConsole issue JDK-8020207 "jconsole fails connecting over SSL using service:jmx:rmi://...jndi...", <a href="https://bugs.openjdk.org/browse/JDK-8020207">https://bugs.openjdk.org/browse/JDK-8020207</a>. <br>This issue was closed with resolutions "Won't fix'. I'm planning to reopen this issue and start working on it and wanted to check if I'm missing something before doing so.<br><br>The cause of the issue is a connection to the RMI registry. If the registry and agent use SSLSockets and JConsole is trying to connect to the agent using "service:jmx:rmi..." URL, ProxyClient of the JConsole does not attempt to use SSL for communication with the registry, it always tries to connect using not secured Socket.<br>A possible solution is to update one of ProxyClient's constructors - 'ProxyClient(String url, String userName, String password)' to check schemas of the JMX service URL and registry's URL if the schemas are "rmi" then check the registry's URL path. If the registry's URL path is a well known "/jmxrmi" then set flag vmConnector to true and check SSL configuration in the same way as with "host:port".<br><br>//// POSSIBLE SOLUTION<div><br></div>private ProxyClient(String url, String userName, String password) throws IOException {<br>    this.advancedUrl = url;<br>    this.connectionName = getConnectionName(url, userName);<br>    this.displayName = connectionName;<br>    JMXServiceURL jmxServiceURL = new JMXServiceURL(url);<br>    if ("rmi".equals(jmxServiceURL.getProtocol())) {<br>        String path = jmxServiceURL.getURLPath();<br>        if (path.startsWith("/jndi/")) {<br>            int end = path.indexOf(';');<br>            if (end < 0) end = path.length();<br>            String registryURIStr = path.substring(6, end);<br>            URI registryURI = URI.create(registryURIStr);<br>            if ("rmi".equals(registryURI.getScheme())<br>                    && "/jmxrmi".equals(registryURI.getPath())) {<br>                this.registryHostName = registryURI.getHost();<br>                this.registryPort = registryURI.getPort();<br>                this.vmConnector = true;<br>                checkSslConfig();<br>            }<br>        }<br>    }<br>    setParameters(jmxServiceURL, userName, password);<br>}<br>//// END OF POSSIBLE SOLUTION<br><br>BR, Gennadiy.</div>