Configure Authentication on mosquitto when using Docket and IOTMenu

sudo docker exec -it mosquitto sh

cd mosquitto/config

mosquitto_passwd -c passwd_file <username>

type password

re-enter password

exit

sudo nano /home/pi/IOTstack/services/mosquitto/mosquitto.conf

add

password_file /mosquitto/config/passwd_file

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>