My application has remote management enabled with SSL. How to setup JConsole to connect to my application?
When you enable the application for remote management with SSL, you have set up a digital certificate on the system where the JMX agent (MBean server) is running and configured SSL properly. Assuming you created a keystore as described in the JSSE Guide and started your application (Server) as follows: % java -Djavax.net.ssl.keyStore=keystore \ -Djavax.net.ssl.keyStorePassword=password Server To connect to this application, you need to run jconsole as follows: % jconsole -J-Djavax.net.ssl.trustStore=truststore \ -J-Djavax.net.ssl.trustStorePassword=trustword The above configuration authenticates the server only. If client authentication is set up, you will need to provide a similar keystore for the JConsole’s keys, and an appropriate truststore for the application.
Related Questions
- When I try to connect to the Management Server via a Remote Client, I get an "Unauthorized Client" error. What are the steps to correct this?
- Is it possible to use a single application over multiple Topics/Links to connect to multiple remote modems?
- My application has remote management enabled with SSL. How to setup JConsole to connect to my application?