class Server expects 1 argument constructor(config) {
but during the app initialization 2 arguments were passed application.server = new Server(config.server, options);
options argument contains read cert info, but Server class attempts to retrieve the data from config.server argument.