Frage

I'm trying to connect to remote service running on Amazon EC2 via JMX. Ports are opened and it looks managing to establish connection but starts to pending and then fails with message like 'You are trying to connect over SSL when it is not configured properly, do you want to try without SSL?'

I found docs where key and trust stores are used to establish connection with JConsole but I have a private key only provided by Amazon EC2 services and the problem for me is that I don't understand how to use it with JConsole to establish connection.

Could someone pleas point me to right direction?

War es hilfreich?

Lösung

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.

Andere Tipps

You are conflating SSH and SSL. They aren't the same thing. And there is no such thing as 'having private key only'. Every private key has a corresponding public key. Your question doesn't actually make sense.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top