From c952b3e265ac9c61a3f0a19781b04e9c1e59a244 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 30 May 2017 17:40:28 +0200 Subject: [PATCH] Add missing conf vars --- source/_docs/mqtt/broker.markdown | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/_docs/mqtt/broker.markdown b/source/_docs/mqtt/broker.markdown index ff1e873e67a..55e3a8a1463 100644 --- a/source/_docs/mqtt/broker.markdown +++ b/source/_docs/mqtt/broker.markdown @@ -58,7 +58,9 @@ mqtt: keepalive: 60 username: USERNAME password: PASSWORD - protocol: 3.1 + protocol: 3.1 + tls_insecure: True + tls_version: 1.2 ``` Configuration variables: @@ -70,9 +72,13 @@ Configuration variables: - **username** (*Optional*): The username to use with your MQTT broker. - **password** (*Optional*): The corresponding password for the username to use with your MQTT broker. - **protocol** (*Optional*): Protocol to use: 3.1 or 3.1.1. By default it connects with 3.1.1 and falls back to 3.1 if server does not support 3.1.1. +- **tls_insecure** (*Optional*): Set the verification of the server hostname in the server certificate. +- **tls_version** (*Optional*): TLS/SSL protocol version to use. Available options are: `auto`, `1.0`, `1.1`, `1.2`. Defaults to `auto`.

There is an issue with the Mosquitto package included in Ubuntu 14.04 LTS. Specify `protocol: 3.1` in your MQTT configuration to work around this issue. + +If you get this error `AttributeError: module 'ssl' has no attribute 'PROTOCOL_TLS'` then you need to set `tls_version: 1.2`.