Mosquitto with Self Signed Certificate Guide or examples?

Hi Everyone,

I would like to enable TLS encryption between my mosquitto install and my ESP8266 based controllers. I have some Led controllers:
[Alternative firmware for Arilux AL-LC03 for use with MQTT and Home Assistant (RGB light strip controller)]

and some Sonoff controllers:
[Sonoff-HomeAssistant (Alternative firmware for Sonoff Switches for use with mqtt/HA)]

I added the following to my mosquitto config:

cafile /etc/mosquitto/certs/ca.crt
certfile /etc/mosquitto/certs/server.crt
keyfile /etc/mosquitto/certs/server.key

This resulted in both my MQTT devices and HA showing as failing to authenticate to Mosquitto.

Are there any guides on how to setup Mosquitto and HA with self signed certificates?

A really good tutorial is available here. I’ve also described the steps here (users, ACL, TLS, …). Some of my firmwares support CloudMQTT natively (Arilux LED controller / Ai-Thinker RGBW bulb).

Sam

2 Likes

Thanks I will have a read though your tutorial and thanks for your firmware for the Arilux its great :slight_smile: