Skip to content

Instantly share code, notes, and snippets.

@suru-dissanaike
Created May 1, 2019 11:30
Show Gist options
  • Select an option

  • Save suru-dissanaike/0466a3fd145f5860e92a20203ecd1bd4 to your computer and use it in GitHub Desktop.

Select an option

Save suru-dissanaike/0466a3fd145f5860e92a20203ecd1bd4 to your computer and use it in GitHub Desktop.
mosquitto.conf used in Medium article
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
listener 8883
cafile /etc/mosquitto/certs/ca.crt
certfile /etc/mosquitto/certs/server.crt
keyfile /etc/mosquitto/certs/server.key
require_certificate true
use_identity_as_username true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment