diff --git a/api/ws/connector.js b/api/ws/connector.js index 1405c64..331478d 100644 --- a/api/ws/connector.js +++ b/api/ws/connector.js @@ -118,7 +118,8 @@ function Websockets(conf, logger) { } me.client.requestOptions = { - agent: me.proxy.tunnelingAgent + agent: me.proxy.tunnelingAgent, + rejectUnauthorized: conf.connector.ws.verifyCert }; me.connect = function() { diff --git a/config/global.json b/config/global.json index 26eac40..c172df2 100644 --- a/config/global.json +++ b/config/global.json @@ -77,6 +77,7 @@ "pingPongIntervalMs": 30000, "enablePingPong": true, "secure": true, + "verifyCert": true, "proxy": { "host": false, "port": false