if(err === null) { log.info("Executing OpenSSL command.") var revokecommand = util.format('openssl ca -config %sintermediate/openssl.cnf -revoke cert.pem -key "%s"', global.paths.pkipath, global.config.ca.intermediate.passphrase); if (error === null) { certdb.reindex().then(function(){ log.info("Successfully revoked certificate."); log.info("Successfully re-indexed CertDB.");
}, res); log.info("Sent certificate to client."); resolve(); } else {
log.info("Reading config file data/config/config.yml ..."); global.config = yaml.safeLoad(fs.readFileSync(global.paths.datapath + 'config/config.yml', 'utf8')); var port = server.address().port; log.info(">>>>>> HTTP server is listening on " + host + ":" + port + " <<<<<<"); }); log.info("Registering API endpoints"); api.initAPI(app) publicDl.initPublicDl(app) log.info("OCSP-Server is running"); }) .catch(function(error){