Skip to content

Commit e7cc108

Browse files
committed
test: use TLSv1 for node 0.12 or higher
1 parent 1244d11 commit e7cc108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/io/socket/client/SSLConnectionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ SSLContext createSSLContext() throws GeneralSecurityException, IOException {
5858
TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509");
5959
tmf.init(ks);
6060

61-
SSLContext sslContext = SSLContext.getInstance("TLS");
61+
SSLContext sslContext = SSLContext.getInstance("TLSv1");
6262
sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
6363
return sslContext;
6464
}

0 commit comments

Comments
 (0)