Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
listener 8883 0.0.0.0
protocol mqtt
#Update this to fit your own file location
cafile /etc/mosquitto/certs/ca-cert.pem
keyfile /etc/mosquitto/certs/server-key.pem
certfile /etc/mosquitto/certs/server-cert.pem
require_certificate true
use_identity_as_username true
allow_anonymous false
listener 1883 localhost
protocol mqtt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.