Updated ConnectionSystem to use TLSv1.2 instead of SSL, Requires testing

This commit is contained in:
Rsl1122 2018-05-25 23:38:48 +03:00
parent ecfab5d78f
commit d2e06711e6

View File

@ -169,7 +169,7 @@ public class ConnectionOut {
}
private SSLSocketFactory getRelaxedSocketFactory() throws NoSuchAlgorithmException, KeyManagementException {
SSLContext sc = SSLContext.getInstance("SSL");
SSLContext sc = SSLContext.getInstance("TLSv1.2");
sc.init(null, trustAllCerts, new java.security.SecureRandom());
return sc.getSocketFactory();
}