homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 308 forks source link

MQTT SSL Error #675

Closed umairyounus closed 4 years ago

umairyounus commented 4 years ago

Hey Guys,

My homie device is unable to communicate to MQTT over TLS. I have an SSL flag set to true. It looks like it's still connecting without SSL protocol which is returning in error.

{ "name": "The kitchen Led", "device_id": "kitchen_clock", "device_stats_interval": 60, "wifi": { "ssid": "****", "password": "******" }, "mqtt": { "host": "192.168.1.10", "port": 8883, "base_topic": "kitchen_clock/", "auth": true, "username": "***", "password": "****", "ssl": true, "ssl_fingerprint": "ce34279aef53eb572d565ae054576d74f36048d5" }, "ota": { "enabled": true }, "settings": {} }

Error from mosquitto:

1588672284: New connection from 172.17.0.1 on port 8883. 1588672284: OpenSSL Error[0]: error:140260FC:SSL routines:ACCEPT_SR_CLNT_HELLO:unknown protocol 1588672284: Socket error on client <unknown>, disconnecting.

umairyounus commented 4 years ago

found the issue, have to compile it with ASYNC_TCP_SSL_ENABLED=1 flag.