try {
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
SSLSocketFactory socketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
SSLSocket returnValue = (SSLSocket) socketFactory.createSocket(host, port);
returnValue.setEnabledCipherSuites(CIPHERS);
return returnValue;
} catch (Exception ignored) {
ignored.printStackTrace();
}
return null;