Skip to content

Commit b24cb1c

Browse files
committed
TLSv1.3 support added to httpclient
Issue: 206549
1 parent 1572713 commit b24cb1c

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

313313
return new SSLConnectionSocketFactory(
314314
sslContext,
315-
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" },
315+
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3" },
316316
null,
317317
NoopHostnameVerifier.INSTANCE);
318318
} catch (NoSuchAlgorithmException | KeyManagementException | KeyStoreException | UnrecoverableKeyException | CertificateException | IOException e) {
319319
e.printStackTrace();
320320
}
321321
return new SSLConnectionSocketFactory(
322322
SSLContexts.createDefault(),
323-
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2"},
323+
new String[] { "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3"},
324324
null,
325325
SSLConnectionSocketFactory.getDefaultHostnameVerifier());
326326
}

0 commit comments

Comments
 (0)