From 378454ea618075b82bd8e6df7f2953fa178527f6 Mon Sep 17 00:00:00 2001 From: jinrongluo Date: Thu, 27 May 2021 16:15:23 -0400 Subject: [PATCH] [Issue #368] fix TLS1.1 and use TLS1.2 in HttpClient --- .../org/apache/eventmesh/client/http/AbstractLiteClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/AbstractLiteClient.java b/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/AbstractLiteClient.java index b538f4bc4a..20302af8e6 100644 --- a/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/AbstractLiteClient.java +++ b/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/AbstractLiteClient.java @@ -60,7 +60,7 @@ public CloseableHttpClient setHttpClient() throws Exception { } SSLContext sslContext = null; try { - String protocol = System.getProperty("ssl.client.protocol", "TLSv1.1"); + String protocol = System.getProperty("ssl.client.protocol", "TLSv1.2"); TrustManager[] tm = new TrustManager[]{new MyX509TrustManager()}; sslContext = SSLContext.getInstance(protocol); sslContext.init(null, tm, new SecureRandom());