All device stopped connecting to MQTT broker #22211
Replies: 6 comments 9 replies
-
Can you connect a computer MQTT client such as MQTT Explorer in the same conditions as a Tasmota ? |
Beta Was this translation helpful? Give feedback.
-
Yes, they have never stopped working, I'm encountering this problem only on tasmota devices |
Beta Was this translation helpful? Give feedback.
-
What are your Tasmota versions? Letsencrypt changed its CA, you need to update Tasmota if your version is too old |
Beta Was this translation helpful? Give feedback.
-
Yes, reading it and others info, I've understood that fingerprint has been thought for self signed certificates |
Beta Was this translation helpful? Give feedback.
-
I have updated to the last version 14.3.0. now the devies are working but after several test it seems that tasmota doesn't support ECDSA certificates but only the RSA ones. Is it correct or maybe there could be something wrong with my configuration? |
Beta Was this translation helpful? Give feedback.
-
PROBLEM DESCRIPTION
I don't now why but all devices (shelly1 and 2) stopped working. Devices are installed in different places with different LAN, internet conenction, ecc. So it must happens something general. I presume after letsencrypt certificate automatic renew. But I don't understand what. it's just a while it happens and I've tryed everithing but nothing, I cannot fix it.
REQUESTED INFORMATION
Configuration
A) LOG MESSAGES
TLS connection error: 296
Connection failed to www.mysite.com:2222, rc -2. Retry in 120 sec
[info] 2093274#2093274: *330537 client xxxxxxxxxxx:16496 connected to 0.0.0.0:2222
[info] 2093274#2093274: *330537 SSL_do_handshake() failed (SSL: error:0A0000C1:SSL routines::no shared cipher) while SSL handshaking, client: xxxxxxxxxxx, server: 0.0.0.0:2222
TLS connection error: 62
Connection failed to www.mysite.com:2222, rc -2. Retry in 120 sec
[info] 2159881#2159881: *116021 client xxxxxxxxxxx:16541 connected to 0.0.0.0:63101
[info] 2159881#2159881: *116021 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: xxxxxxxxxxx, server: 0.0.0.0:63101
B) SETTINGS
mosquitto:
listener 1883
protocol mqtt
listener 1884
protocol websockets
ngnix
log_format mqtt '$remote_addr [$time_local] $protocol $status $bytes_received '
'$bytes_sent $upstream_addr';
upstream msqt_mqtt {
server 127.0.0.1:1883;
}
server {
listen 2222 ssl;
proxy_pass msqt_mqtt;
ssl_preread on;
ssl_certificate /etc/letsencrypt/live/mysite.it/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mysite.it/privkey.pem;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
ssl_session_cache shared:mqtt_nginx_SSL:10m;
ssl_session_timeout 1440m;
ssl_session_tickets off;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
ssl_ciphers 'HIGH:!aNULL:!MD5:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
access_log /var/log/nginx/mqtt_access.log mqtt;
error_log /var/log/nginx/mqtt_error.log info;
}
TO REPRODUCE
I don't know
EXPECTED BEHAVIOUR
devices still get conneted without problems
Beta Was this translation helpful? Give feedback.
All reactions