i am running home assistant supervised on ubuntu linux and added/started the mosquitto add-on. in the configuration section I see that the network is configured for port 8883/tcp which is used for tls encrypted communication. also the following default configuration is set which includes the certificates for tls communication. Unfortunately, my mqtt client cannot connect to this port. I have enabled the port in ubuntu using ufw. In the broker log file, it does not say it is starting a listener on port 8883. What is the proper method to turn on tls in this add on?
thank for the reply. I gave that a try and restarted the add-on. it didn’t seem to make a difference. Below is the log. You can see that the add-on is not enabling ssl due to no certs found and it is also not starting the service on port 8883. It’s not clear to me where I would provide certs as the default configuration already specifies them and I do not see an option to create them.
[16:47:33] INFO: Setup mosquitto configuration
[16:47:33] WARNING: SSL not enabled - No valid certs found!
[16:47:33] INFO: No local user available
[16:47:33] INFO: Initialize Hass.io Add-on services
[16:47:33] INFO: Initialize Home Assistant discovery
[16:47:33] INFO: Start Mosquitto daemon
1598140053: mosquitto version 1.6.3 starting
1598140053: Config loaded from /etc/mosquitto.conf.
1598140053: Loading plugin: /usr/share/mosquitto/auth-plug.so
1598140053: ├── Username/password checking enabled.
1598140053: ├── TLS-PSK checking enabled.
1598140053: └── Extended authentication not enabled.
1598140053: |-- *** auth-plug: startup
1598140053: Opening ipv4 listen socket on port 1883.
1598140053: Opening ipv6 listen socket on port 1883.
1598140053: Opening websockets listen socket on port 1884.
1598140053: Warning: Mosquitto should not be run as root/administrator.