JOLOKIA HTTPS sample

classic Classic list List threaded Threaded
3 messages Options
Kostas Kostas
Reply | Threaded
Open this post in threaded view
|

JOLOKIA HTTPS sample

Hello,

I try to access Fuse jolokia.
Fuse web console is using the https protocol.
So I define J4pClient as below:

J4pClient j4pClient = J4pClient.url("https://localhost:8444/jolokia")
                              .user("admin")
                              .password("admin")
                              .authenticator(new BasicAuthenticator().preemptive())
                              .connectionTimeout(3000)
                              .build();

But I get an SSLHandshakeException because I have not defined any certificate.
How can I do that using java or can I disable the certificate needed?

Please help
roland roland
Reply | Threaded
Open this post in threaded view
|

Re: JOLOKIA HTTPS sample

Unfortunately an advanced cert handling is not yet implemented in the Java client. See also https://github.com/rhuss/jolokia/issues/93 which I just updated.

This is on the roadmap, but I can't give any ETA yet.

However, I also take pull requests :)
... roland
Kostas Kostas
Reply | Threaded
Open this post in threaded view
|

Re: JOLOKIA HTTPS sample

Thank you Roland for your quick response.
I am looking forward for any updates.