hi
i am still very new to pi and need help setting up Mosquitto with a password
i have set up Jessie and Mosquitto and both work well
my problem comes when i try to use a username / password with mosquitto
i have modified mosquitto.conf to:
allow_annonymous false
passwordfile pwfile
then created the pwfile using:
sudo mosquitto_passwd -c /etc/mosquitto/pwfile XXXXXXXXX
everything seems to work ok until i try to log in using
mosquitto_sub -u username -P password -t topic
i get the error connection refused
if i edit mosquitto.conf and comment out annonymous and passwordfile i can log in either with or without the user / password but i think that is to be expected
my problem is getting the password working correctly, i have removed the password file and tried again several times, i think my problem is something basic which i am missing
any help would be much appreciated
dave