Skip to content

Commit efcb635

Browse files
author
Jack Low
committed
Set DefaultSSLSocketFactory to TLSv1.2 in line with JDK 11.0.11: https://www.oracle.com/java/technologies/javase/11-0-11-relnotes.html#JDK-8202343
1 parent 6fc750f commit efcb635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/github/shyiko/mysql/binlog/network/DefaultSSLSocketFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public class DefaultSSLSocketFactory implements SSLSocketFactory {
3030
private final String protocol;
3131

3232
public DefaultSSLSocketFactory() {
33-
this("TLSv1");
33+
this("TLSv1.2");
3434
}
3535

3636
/**
37-
* @param protocol TLSv1, TLSv1.1 or TLSv1.2 (the last two require JDK 7+)
37+
* @param protocol TLSv1, TLSv1.1 or TLSv1.2. Since JDK 11.0.11, TLSv1 and TLSv1.1 are no longer supported.
3838
*/
3939
public DefaultSSLSocketFactory(String protocol) {
4040
this.protocol = protocol;

0 commit comments

Comments
 (0)