From 9f39ebeef77bbf44fcde00eff642f61433def75b Mon Sep 17 00:00:00 2001 From: Eric Bergstrom <192110+scribe@users.noreply.github.com> Date: Wed, 15 Mar 2023 12:00:12 -0600 Subject: [PATCH] ApacheHTTP enforce TLS1.2 --- .../spectralogic/ds3client/networking/NetworkClientImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/networking/NetworkClientImpl.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/networking/NetworkClientImpl.java index 5cfb58104..208482cbf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/networking/NetworkClientImpl.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/networking/NetworkClientImpl.java @@ -127,7 +127,7 @@ private static CloseableHttpClient createInsecureSslHttpClient() throws NoSuchAl final SSLContext sslContext = new SSLContextBuilder() .setProtocol(INSECURE_SSL_PROTOCOL) .loadTrustMaterial(null, (TrustStrategy) (chain, authType) -> true).build(); - final SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext, new NoopHostnameVerifier()); + final SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext, new String[]{ INSECURE_SSL_PROTOCOL }, null, new NoopHostnameVerifier()); final Registry socketFactoryRegistry = RegistryBuilder.create() .register("http", PlainConnectionSocketFactory.getSocketFactory())