public static void main(String... args) throws Exception { if (args.length != 1 || args[0].startsWith("-")) { System.out.println("Usage: Http2Server <base directory>"); return; } Http2Server server = new Http2Server(new File(args[0]), SslClient.localhost().sslContext.getSocketFactory()); server.run(); } }
new SecureRandom()); return new SslClient(activeSslContext, (X509TrustManager) trustManagers[0]); } catch (GeneralSecurityException gse) { throw new AssertionError(gse);