Skip to content

Instantly share code, notes, and snippets.

Created Oct 12, 2017
What would you like to do?
SSLContext sslContext = SSLContexts.custom()
.loadTrustMaterial((TrustStrategy) (chain, authType) -> true)
try (CloseableHttpClient httpClient = HttpClients.custom()
.build()) {
String response = Executor.newInstance(httpClient)
assertThat(response).isEqualTo("Hello on port 8443, secure: true");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment