I am trying to implement security in MQTT on node.js. I didn't quite understand the paragraph below.
https://github.com/mqttjs/MQTT.js
In case mqtts (mqtt over tls) is required, the options object is passed through to tls.connect(). If you are using a self-signed certificate, pass the rejectUnauthorized: false option. Beware that you are exposing yourself to man in the middle attacks, so it is a configuration that is not recommended for production environments.