To support TLS its necessary to use another MQTT library. The new lib is a drop-in replacement for the async-mqtt-client.