You will need to create a key store and import your private key enerated by EC2. Then you will need to create a trust store and import the EC2's certificate there. The difference between keystore and trustore is described here.
Once you have your keystore and truststore ready you can, for example, install the Security plugin to VisualVM and use the security configuration dialogue in the options to use the stores to communicate with secured servers. Or you can follow that guide you found for JConosole.