Legobas / mqtt-timer

Programmable Timer/Scheduler for MQTT
https://hub.docker.com/r/legobas/mqtt-timer
Apache License 2.0
14 stars 0 forks source link

Add SSL support #4

Open vampywiz17 opened 2 months ago

vampywiz17 commented 2 months ago

Hello ,

Possible to add SSL option to MQTT config? (TLS not necessary)

Legobas commented 2 months ago

Did you try url: "ssl://<MQTT SERVER>:1883" instead of url: "tcp://<MQTT SERVER>:1883"? I do not use SSL/TLS myself so I cannot test it.

vampywiz17 commented 1 month ago

@Legobas

seems work, but possible skip cert?:

FATAL MQTT connection error="network Error : tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match xxxxxxxx.com"

I hope it help, but i don't know possible to set it up in conf. file:

https://github.com/eclipse/paho.mqtt.golang/blob/master/cmd/ssl/main.go#L90