I have succeeded in establishing connection without SSL with the following command:
java -Dcom.sun.management.jmxremote.port=3333 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false DemoApp
But how do I connect through SSL? I have created a self signed certificate certreq.csr. How do I use this to establish SSL connection from VisualVM. The official documentation is not clear. Please advise me on the steps.