Skip to content

Commit ac240c2

Browse files
committed
Cherry pick branch 'genexuslabs:fix/httpclient_tls1.3_support' into beta
(cherry picked from commit 82d32ca)
1 parent be956a6 commit ac240c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/main/java/com/genexus/internet/HttpClientJavaLib.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,15 @@ private static SSLConnectionSocketFactory getSSLSecureInstance() {
282282

283283
return new SSLConnectionSocketFactory(
284284
sslContext,
285-
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" },
285+
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3" },
286286
null,
287287
NoopHostnameVerifier.INSTANCE);
288288
} catch (NoSuchAlgorithmException | KeyManagementException | KeyStoreException | UnrecoverableKeyException | CertificateException | IOException e) {
289289
e.printStackTrace();
290290
}
291291
return new SSLConnectionSocketFactory(
292292
SSLContexts.createDefault(),
293-
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2"},
293+
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3"},
294294
null,
295295
SSLConnectionSocketFactory.getDefaultHostnameVerifier());
296296
}

0 commit comments

Comments
 (0)