Giter Site home page Giter Site logo

mosquitto_ynh's Introduction

Mosquitto for YunoHost

Integration level Working status Maintenance status

Install Mosquitto with YunoHost

Read this README in other languages.

This package allows you to install Mosquitto quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

Mosquitto gives you interconnect your objects and applications with an open source MQTT broker. Client can publish or subscribe after authentication (username, password).

Shipped version: 2.0.14~ynh2

Demo: https://test.mosquitto.org

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/mosquitto_ynh/tree/testing --debug
or
sudo yunohost app upgrade mosquitto -u https://github.com/YunoHost-Apps/mosquitto_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

mosquitto_ynh's People

Contributors

alexaubin avatar grenagit avatar rafi594 avatar salamandar avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mosquitto_ynh's Issues

Add MQTT over SSL

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

mosquitto_passwd doesn't produce correct user:password

Describe the bug

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.

Context

  • Hardware: VPS bought online
  • YunoHost version: 11.2.10.3 (stable)
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 2.0.14~ynh2 / stable

Steps to reproduce

  • If the error occurs in your browser, explain what you did:
    1. Go to 'applications'
    2. Click on 'Insatll'
    3. Select 'mosquitto'
    4. Select 'user name and password'
    5. After successfully install go to another machine console'
    6. mosquitto_sub -d -t testTopic -u "user" -P "password" -h domain.ltd
    7. *See

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

  1. From another terminal mosquitto_pub -h domain.ltd -t testTopic -u "user" -P "password" -m "hello"
  2. *See

Client (null) received PUBLISH (d0, q0, r0, m0, 'testTopic', ... (5 bytes))
hello

  1. From servers terminal 'mosquitto_passwd -b /etc/mosquitto/passwd test password10password'
  2. *Repeat 8 with mosquitto_pub -h domain.ltd -t testTopic -u "test" -P "password10password" -m "hello world"
  3. *See error: 'Connection error: Connection Refused: not authorised.
    Error: The connection was refused.'
  4. Two users are in /etc/mosquitto/passwd file.

Expected behavior

As in 8 and 9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.