Skip to content

Commit

Permalink
[Issue #368] fix TLS1.1 and use TLS1.2 in HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
jinrongluo committed May 27, 2021
1 parent 7fd5373 commit 378454e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 378454e

Please sign in to comment.