log.error("Failed to init SSLContext", e);
throw new IOException("Failed to get SSLContext for TLS algorithm");
}
ServerSocketFactory factory = sslCtx.getServerSocketFactory();
ServerSocket serverSocket = factory.createServerSocket(0);
getLog().debug("Created serverSocket: "+serverSocket);
int port = serverSocket.getLocalPort();
InetAddress addr = serverSocket.getInetAddress();
httpsURL = "https://localhost:" + port + '/';
AcceptThread thread = new AcceptThread(serverSocket, getLog(), httpsURL);
synchronized( httpsURL )
{
log.debug("Starting server socket thread");