Oct 29, 2018

How to ignore SSL certificate errors in Apache HttpClient 4.3+

Sometimes in development mode, you need to ignore SSL certificate errors for https connections:

CloseableHttpClient httpClient = HttpClients.custom().setHostnameVerifier(new AllowAllHostnameVerifier()).build();