generateNewKeyPairAndCertificate(certificateCommonName);
}
// Set up the handlers for WebSocket, REST and the web interface
HttpHandler pathHttpHandler = path()
.addPrefixPath("/api/ws", websocket(new InternalWebSocketHandler(this, certificateCommonName)))
.addPrefixPath("/api/rs", new InternalRestHandler(this))
.addPrefixPath("/", new InternalWebInterfaceHandler());
// Add some security spices
HttpHandler securityPathHttpHandler = addSecurity(pathHttpHandler, identityManager);