mosquitto

A call to SSPI failed, see inner exception paho m2mqtt Dot.Net(c#) client SSL/TLS connection

痴心易碎 提交于 2020-01-25 21:46:13
问题 I am trying to connect with mosquitto broker using m2mqtt c# client version 4.3.0 library via SSL/TLS. Below is the code I have tried static void Main(string[] args) { // create client instance MqttClient client = new MqttClient(IPAddress.Parse("127.0.0.1"), 8883, true, new X509Certificate2("C:\\Users\\hp\\Desktop\\certificate\\ca.crt"), new X509Certificate2("C:\\Users\\hp\\Desktop\\certificate\\client.crt"), MqttSslProtocols.TLSv1_2); // register to message received client

MQTT qos parameter has no effect

五迷三道 提交于 2020-01-25 11:57:07
问题 I have installed a mosquitto server on a raspberry server. This server works fine: I have test with mosquitto_sub and mosquitto_pub commands. I have write this python script: import paho.mqtt.client as mqtt import time client = mqtt.Client('module_test_4') client.connect('127.0.0.1', 1883, 10) client.loop_start() for i in range(10): client.publish('topic_2', "valeur %d" % i, qos=0) time.sleep(1) client.loop_stop() client.disconnect() I have launched this script twice on 2 consoles: mosquitto

Signing certificate by self signed CA

筅森魡賤 提交于 2020-01-25 07:52:07
问题 I have created selfsigned CA certificate on Ubuntu that runs on AWS . I have also created client and server certificates signed by current CA. SSL connection is used by Mosquitto MQTT service. Unfortunatly I have Received fatal alert: unknown_ca error from client side when it tries to connect to server. I was tested the same certificate generation procedure on my Raspberry Pi and SSL+MQTT works well. Creating certificates: # CA openssl req -new -newkey rsa:2048 -keyout private/cakey.pem -out

ActiveMq and mosquitto bridge not working

徘徊边缘 提交于 2020-01-25 04:05:11
问题 I am getting below error on activemq console when i am trying to connect from mosquitto to activemq. WARN | Transport Connection to: tcp://192.168.0.27:48689 failed: java.io.IOException: Unknown data type: 77 MY setup is as below 192.168.0.27 ---- Mosquitto broker with below configuration for bridge connection try try_private false address 192.168.0.22:61616 username myuser password mypassword start_type automatic clientid 1 notifications true topic inbound/# in alpha/ beta/ topic outbound/#

在Windows下使用MQTT

笑着哭i 提交于 2020-01-23 22:48:51
在此处https://mosquitto.org/download/下载mqtt windows broker。 安装完毕后在服务中 启动mqtt服务。 如果未在服务列表中出现,则需要 C:\Program Files\mosquitto\mosquitto install C:\Program Files\mosquitto\mosquitto uninstall 这两条命令用来安装和卸载mqtt服务。 密码配置 在mosquitto目录下新建一个password.file文件,输入命令 注意,如果需要增加多个密码,需要去掉-c参数 https://www.cnblogs.com/saryli/p/9820532.html .\mosquitto_passwd -c G:\MQTT_SERVER\mosquitto sammy 根据提示输入密码 修改mosquitto.conf文件 改为 allow_anonymous false password_file G:\MQTT_SERVER\mosquitto\password.file 到此,配置完成。 注意:不用配置ip地址和端口信息,就可以用内网ip地址链接到此mqtt服务器。 来源: CSDN 作者: link2dream 链接: https://blog.csdn.net/xuancuocui1413/article

What server address (mosquitto broker url) should I use to connect node-red to mosquitto?

≯℡__Kan透↙ 提交于 2020-01-16 13:10:50
问题 My situation is currently I have two computers. One is my computer, the other is Amazon Web Services. Node-red is installed on my computer, and mosquitto is installed on Amazon Web Services (Photo 1). I run mosquitto on Amazon Web Services, and type mosquitto_sub -t "test" for receive data.(photo 2) I need to enter 'server' (mosquitto broker url) and 'topic' in node-red to send data from node-red to mosquitto. Currently I have entered 172.26.12.244:1880 and 'test'. But node-red and mosquitto

MQTT tls/ssl publishes/subscribes with mqtt-spy and mqttfx. Wha are the right parameters for mosquitto_sub?

主宰稳场 提交于 2020-01-16 08:14:08
问题 I am running the 17.04 version of ubuntu with mosquitto server and clients installed. I've generated a set of certificates with: openssl genrsa -out ca.key 2048 openssl req -x509 -new -nodes -key ca.key -sha256 -days 3650 -out ca.crt openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 3650 -sha256 placed them into /etc/mosquitto/ca_certificates and configured

Mosquitto 1.4.2 Websocket support

Deadly 提交于 2020-01-11 06:49:08
问题 I'm trying to utilize Mosquittos recent update to support websockets in the broker. I'm running Mosquitto v1.4.2 and I've added the following lines to the mosquitto configuration file (mosquitto.conf): listener 10001 127.0.0.1 protocol websockets listener 1883 protocol mqtt When I try and start the broker with the new configuration I get the following : $ mosquitto -c /etc/mosquitto/mosquitto.conf Error: Websockets support not available. Error found at /etc/mosquitto/mosquitto.conf:16. Error:

Error when installing mosquitto with websockets on centos 7

匆匆过客 提交于 2020-01-07 07:13:21
问题 I have followed the next steps: sudo yum groupinstall "Development Tools" sudo yum install wget mercurial cmake openssl-devel c-ares-devel libuuid-devel wget https://github.com/warmcat/libwebsockets/archive/v1.3-chrome37-firefox30.tar.gz tar zxvf v1.3-chrome37-firefox30.tar.gz cd libwebsockets-1.3-chrome37-firefox30 mkdir build; cd build; cmake .. -DLIB_SUFFIX=64 sudo make install To install mosquitto: hg clone https://bitbucket.org/oojah/mosquitto cd mosquitto hg pull && hg update 1.4 In

MQTT (Mosquitto) Connection pool?

蹲街弑〆低调 提交于 2020-01-06 20:24:29
问题 What would you suggest for Mosquitto connection pooling in Java? We are wasting (blocking) too much time on establishing each connection, so we think some kind of reuse would be better. 回答1: I'd suggest using the generic object pooling in the Apache commons tools https://commons.apache.org/proper/commons-pool/ But also you could extend Thread to instantiate a MQTT connection object on creation and have a persistent connection per thread. This could be combined with the built in thread pool in