Tasmota and wildcard certificate MQTT

222 views
Skip to first unread message

Tam481

unread,
Apr 14, 2022, 3:40:03 AM4/14/22
to TasmotaUsers
Hello,
Do you know if Tasmota supports wildcard certificates?

I run my MQTT behind a reverse proxy (Traefik). If I set the hostname for the MQTT server to a named host ("mqtt.example.com") MQTT Explorer and other applications work fine and are able to connect. However, Tasmota devices stop working and report that they are unable to connect to the server. If I change the host to be ("*") then they start working again. I'm using a wildcard certificate by Let's Encrypt as I run multiple services behind Traefik.

Thank you in advance

Philip Knowles

unread,
Apr 14, 2022, 5:10:17 AM4/14/22
to Tam481, TasmotaUsers

I don’t know but the Result Code from the MQTT failure would be helpful to identify the issue.

 

MQTT - Tasmota has some useful information. The issue may be a timeout but without further background it’s difficult to say.

 

Regards

 

Phil K

 

Sent from Mail for Windows

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/8e60edf0-d1fd-4739-884a-d93ea1c5acc5n%40googlegroups.com.

 

Tam481

unread,
Apr 14, 2022, 6:00:13 AM4/14/22
to TasmotaUsers
Here's the error I'm getting.

TLS connection error: 0
Connect failed to mqtt.example.com:8883, rc -4. Retry in 10 sec

Stephan Hadinger

unread,
Apr 14, 2022, 6:29:51 AM4/14/22
to TasmotaUsers

`TLS connection error: 0` means that TLS phase succeeded.
Error -4 means:  MQTT_CONNECTION_TIMEOUT (the server didn't respond within the keepalive time)

Hope this helps.

Stephan
Reply all
Reply to author
Forward
0 new messages