There is an option to enable TLS, but there is no way to provide a certificate for it. I use a cert-based auth and a self-signed cert for my mqtt broker. The paho-mqtt documentation (https://pypi.org/project/paho-mqtt/#client) suggests to put these parameters to tls_set function:
There is an option to enable TLS, but there is no way to provide a certificate for it. I use a cert-based auth and a self-signed cert for my mqtt broker. The paho-mqtt documentation (https://pypi.org/project/paho-mqtt/#client) suggests to put these parameters to tls_set function:
While the tls_version and ciphers might not be so important, the first 3 arguments are more common to be set.