Skip to content

Commit 82d32ca

Browse files
iroquetaBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:fix/httpclient_tls1.3_support' into beta
1 parent 8cebd25 commit 82d32ca

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
@@ -295,15 +295,15 @@ private static SSLConnectionSocketFactory getSSLSecureInstance() {
295295

296296
return new SSLConnectionSocketFactory(
297297
sslContext,
298-
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" },
298+
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3" },
299299
null,
300300
NoopHostnameVerifier.INSTANCE);
301301
} catch (NoSuchAlgorithmException | KeyManagementException | KeyStoreException | UnrecoverableKeyException | CertificateException | IOException e) {
302302
e.printStackTrace();
303303
}
304304
return new SSLConnectionSocketFactory(
305305
SSLContexts.createDefault(),
306-
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2"},
306+
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3"},
307307
null,
308308
SSLConnectionSocketFactory.getDefaultHostnameVerifier());
309309
}

0 commit comments

Comments
 (0)