Knowledge Base

Find answers to common questions about Cloudmersive products and services.



How to set TLS version to TLS 1 2 in Cloudmersive Java Client
10/4/2021 - Cloudmersive Support


You can configure the TLS version in the Cloudmersive Java Client in code. As part of this you can enable TLS 1.2. To do so, simply add the following code snippet into your API call code:

ApiClient defaultClient = Configuration.getDefaultApiClient();
OkHttpClient client = new OkHttpClient.Builder()
    .connectionSpecs(Arrays.asList(ConnectionSpec.MODERN_TLS))
    .build();
defaultClient.setHttpClient(client);

800 free API calls/month, with no expiration

Get started now! or Sign in with Google

Questions? We'll be your guide.

Contact Sales