mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-04 01:40:53 +00:00
Merge pull request #292 from carpenike/master
Added Self Signed CA Support
This commit is contained in:
@@ -30,6 +30,11 @@ class MQTT {
|
||||
options.clientId = mqttSettings.client_id;
|
||||
}
|
||||
|
||||
if (mqttSettings.hasOwnProperty('reject_unauthorized') && !mqttSettings.reject_unauthorized) {
|
||||
logger.debug(`MQTT reject_unauthorized set false, ignoring certificate warnings.`);
|
||||
options.rejectUnauthorized = false;
|
||||
}
|
||||
|
||||
this.client = mqtt.connect(mqttSettings.server, options);
|
||||
|
||||
// Register callbacks.
|
||||
|
||||
Reference in New Issue
Block a user