This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 241
SSL/TLS support #73
Comments
I'll add the ability to provide an |
Via 1599099 you can do something like this: SSLContext context = SSLContext.getInstance("TLSv1");
TrustManager[] trustManagerArray = {
NullX509TrustManager.INSTANCE
};
context.init(null, trustManagerArray, null);
Consul.builder().withUrl("https://your-secure-host:8500").withSslContext(sslContext).build(); |
👍 Nice this is just what i need! |
Why a Null trust manager here? Doesn't this undo cert verification/validation? |
yes, but the point of the comment wasn't to explain how Java SSL contexts work, it was to show how to provide it to the API |
roger, just hope noone c&p that snippet ;) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently its not possible to use this java client against a consul server with SSL enabled.
Or even specify the
https
protocol.The text was updated successfully, but these errors were encountered: