Have you tried to configure the DWM Daemon and DWM Proxy to use the MQTT over TLS ports?
Please see the configuration in files
/etc/dwm1001/dwm1001.config
/etc/dwm1001/dwm1001-proxy.config
TLS can be enabled in the Mosquitto Broker configuration file:
/etc/mosquitto/mosquitto.conf