stjohnjohnson / smartthings-mqtt-bridge

Bridge between SmartThings and MQTT
https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/
MIT License
363 stars 241 forks source link

Does it support SSL clients connections? #81

Closed mvillarejo closed 7 years ago

mvillarejo commented 7 years ago

hello, do you have a method of using SSL certificates for authenticating with mqtt server?

thanks

stjohnjohnson commented 7 years ago

If this client supports it, yes. Client: https://www.npmjs.com/package/mqtt#client

mvillarejo commented 7 years ago

Yeah, saw that but couldn't find the config arguments for SSL certificate path any idea?

gandazgul commented 7 years ago

@mvillarejo add this to the config:

mqtt:

Specify your MQTT Broker's hostname or IP address here

host: tls://localhost:8883
rejectUnauthorized: false

... rest here

mvillarejo commented 7 years ago

yes, finally managed to make it work. this can be closed.

thanks.