try {
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
SSLServerSocketFactory socketFactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
SSLServerSocket returnValue = (SSLServerSocket) socketFactory.createServerSocket(port);
returnValue.setEnabledCipherSuites(CIPHERS);
returnValue.setNeedClientAuth(false);
return returnValue;
} catch (Exception ignored) {
ignored.printStackTrace();
}
return null;