Quantcast
Channel: LoginVast.Com
Viewing all articles
Browse latest Browse all 640

How to set max TLS version for ning AsyncHttpClient in Java?

$
0
0

The post How to set max TLS version for ning AsyncHttpClient in Java? appeared first on LoginVast.Com.

I am currently using the ning client Async http client in Java. The server that I am sending the requests to is trying to use TLSv1.3 but the system the client uses cannot support TLSv1.3 So I am trying to replicate the --tls-max parameter from curl so that I can set the max supported version of TLS in the client request. For the newer async http client I can do something like this

final var config = new DefaultAsyncHttpClientConfig.Builder();
config.setEnabledProtocols(new String[] {"TLSv1.2"});
final var ahc = asyncHttpClient(config);

But I am not able to figure out how to do this for com.ning.http.client . Any help here would be helpful.

The post How to set max TLS version for ning AsyncHttpClient in Java? appeared first on LoginVast.Com.


Viewing all articles
Browse latest Browse all 640

Trending Articles