yunohost-apps / mosquitto_ynh Goto Github PK
View Code? Open in Web Editor NEWMosquitto package for YunoHost
Home Page: http://mosquitto.org/
License: MIT License
Mosquitto package for YunoHost
Home Page: http://mosquitto.org/
License: MIT License
I installed the Mosquitto program. It works as expected with the username and password entered during installation. However, when I add a new user, it gives an authentication error. The password file contains a new user, but I think the hash algorithm used in the installation is not the same as the algorithm used by the mosquitto_passwd command when adding a new user. If I edit the file and copy the password of the user created during the installation to the new user, the new user connects without any problems. What should I do to add a new user to the program in the standard way? Thanks in advance for your interest.
mosquitto_sub -d -t testTopic -u "user" -P "password" -h domain.ltd
Client (null) sending CONNECT
Client (null) received CONNACK (0)
Client (null) sending SUBSCRIBE (Mid: 1, Topic: testTopic, QoS: 0, Options: 0x00)
Client (null) received SUBACK
Subscribed (mid: 1): 0
mosquitto_pub -h domain.ltd -t testTopic -u "user" -P "password" -m "hello"
Client (null) received PUBLISH (d0, q0, r0, m0, 'testTopic', ... (5 bytes))
hello
mosquitto_pub -h domain.ltd -t testTopic -u "test" -P "password10password" -m "hello world"
As in 8 and 9
Hello,
I am not comfortable with the writing of YUNoHost scripts.
And maybe you are aware about the below suggestion.
But if you know how to add mosquitto user to ssl-cert group then a first step to use MQTT over SSL is done.
The second step is to push the below four line to the /etc/mosquitto/conf.d/default.conf :
listener 8883
certfile /etc/yunohost/certs/your.domain.tld/crt.pem
cafile /etc/yunohost/certs/your.domain.tld/crt.pem
keyfile /etc/yunohost/certs/your.domain.tld/key.pem
And that is all.
Regards,
Thoma
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.