I am using Apache HttpClient 4.3 to interact with the API of hubic.com. My minimal reproducable example is just a one liner:
<
HttpClient can take an SSLContext for its SSLConnectionSocketFactory.
You can set the appropriate TLS version in the properties for the SSLContext
with the getInstance
static method.
Something like SSLContext context = SSLContext.getInstance("TLSv1");
If you need to force just one protocol (as getInstance
can return one that supports multiple protocols), you can use the setEnabledProtocols
method (which takes a String[]
) on the context
you retrieved using getInstance
.