Skip to content

Commit d189caa

Browse files
authored
Merge pull request #91 from m8719-github/tls-v1.3-support
TLSv1.3 support
2 parents d0a1a60 + 6acde9b commit d189caa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/sourcelab/kafka/connect/apiclient/rest/HttpsContextBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ public class HttpsContextBuilder {
5050
private static final Logger logger = LoggerFactory.getLogger(HttpsContextBuilder.class);
5151

5252
/**
53-
* Accept TLS1.2, 1.1, and 1.0 protocols.
53+
* Accept TLS1.3, and 1.2 protocols.
54+
* TLSv1 and TLSv1.1 are insecure and should not be used.
5455
*/
55-
private static final String[] sslProtocols = new String[] { "TLSv1.2", "TLSv1.1", "TLSv1" };
56+
private static final String[] sslProtocols = new String[] {"TLSv1.3", "TLSv1.2"};
5657

5758
/**
5859
* Client configuration.

0 commit comments

Comments
 (0)