SSLContext context = SSLContext.getInstance(m_sslProtocol);
// Below call does not handle TrustManagers, needed when server must authenticate clients.
context.init(keyFactory.getKeyManagers(), trustFactory == null ? null : trustFactory.getTrustManagers(), null);
SSLServerSocketFactory ssf = context.getServerSocketFactory();
SSLServerSocket serverSocket = (SSLServerSocket)ssf.createServerSocket(port, backlog, InetAddress.getByName(host));
return serverSocket;
}
catch (IOException x)
{