diff --git a/Node/modules/status.ts b/Node/modules/status.ts index 9b5b54c84..5e1bc7fc6 100644 --- a/Node/modules/status.ts +++ b/Node/modules/status.ts @@ -27,9 +27,13 @@ export class Status { this.roomServer = roomServer this.apikeys = config.apikeys - const options = { - key: fs.readFileSync(path.resolve(config.key)), - cert: fs.readFileSync(path.resolve(config.cert)) + const options: any = {} + + try { + options.key = fs.readFileSync(path.resolve(config.key)) + options.cert = fs.readFileSync(path.resolve(config.cert)) + } catch (error) { + console.error('Unable to read certificate for status module. You will not be able to create secure connections to the status APIs.') } const app = express()