tuanpmt / esp_mqtt

MQTT client library for ESP8266
http://tuanpm.net/post/esp_mqtt/
MIT License
1.14k stars 400 forks source link

Unable to use ssl mode #166

Open abhion opened 4 years ago

abhion commented 4 years ago

I am trying to enable ssl on mosquitto broker. I followed the instructions here: http://www.steves-internet-guide.com/mosquitto-tls/

This is my config file with path to key and certificate files:

`#cafile C:\Users\DemoEngineer\Desktop\cert\ca.crt

capath C:\Users\DemoEngineer\Desktop\cert

Path to the PEM encoded server certificate.

certfile C:\Users\DemoEngineer\Desktop\cert\server.crt

Path to the PEM encoded keyfile.

keyfile C:\Users\DemoEngineer\Desktop\cert\server.key

`

When i run the config file with this command: mosuitto -v -c mosquitto.conf, I get

Config loaded from mosquitto.conf. 1576732345: Opening websockets listen socket on port 1884. 1576732345: libuv support not compiled in 1576732345: Creating Vhost 'default' port 1884, 3 protocols, IPv6 off 1576732345: Using non-SSL mode 1576732345: Opening ipv6 listen socket on port 1883. 1576732345: Opening ipv4 listen socket on port 1883.

It says using non-ssl mode though I have added path to key and certificate.