eclipse / paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
315 stars 178 forks source link

Use secure connection to the broker by default? #99

Closed jue89 closed 6 years ago

jue89 commented 6 years ago

Hi!

As far as I understand the code, MQTTSNGateway uses only secure connections if every possible client ID is listed in the ClientsList and the keyword secureConnection is attached to the client. What do you think of using secure connection by default if BrokerSecurePortNo, RootCAfile (or RootCApath), CertKey and PrivateKey is given?

Or do you have any concerns?

Thank you!

ty4tw commented 6 years ago

Current secure connection is only between Gateway and Broker. If any client can connect the Gateway there's no meaning of secure connection. So, the authentication functionality is a minimum requirement for the gateway. I thought like that.