pherting / streamdeck-mqtt

Simple MQTT Client Plugin for Elgato Stream Deck.
12 stars 2 forks source link

Connection to mosquitto MQTT server using SSL fails #7

Open OLFDB opened 7 months ago

OLFDB commented 7 months ago

When trying to connect to mosquitto MQTT server using TLS the connection fails. The server has a valid Lets Encrypt certificate, which can be checked with OpenSSL sucessfuly.

openssl s_client -connect server:8883 -showcerts -tls1_2 openssl s_client -connect server:8883 -showcerts -tls1_3

Verify return code: 0 (ok)

The logfile of mosquitto shows only this in level all:

2023-11-11T10:13:47.813331+01:00 server mosquitto[30638]: 1699694027: New connection from 192.168.xxx.xxx60605 on port 8883. 2023-11-11T10:13:47.813457+01:00 server mosquitto[30638]: 1699694027: Client disconnected due to protocol error. 2023-11-11T10:13:47.825549+01:00 server mosquitto[30638]: 1699694027: New connection from 192.168.xxx.xxx:60606 on port 8883. 2023-11-11T10:13:47.825928+01:00 server mosquitto[30638]: 1699694027: Client disconnected due to protocol error.

pherting commented 2 months ago

Hi, sorry for the late Answer! I need to reproduce your issue the next days. I think there is a mistake with certifcates.. You activate the "Use SSL" Combobox to Yes? Can you connect to your broker over the Internet to test it with http://mqtt.run/ or is it only local?