Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » MQTT PAHO C Library SSL(Does Paho C Library really supports SSL??)
MQTT PAHO C Library SSL [message #1751581] Wed, 11 January 2017 16:28 Go to next message
paulo balbino is currently offline paulo balbinoFriend
Messages: 2
Registered: January 2017
Junior Member
Our company used the MQTT Paho C Library in a project and the next step is to add support to SSL on it. We tried to work with SSL using the samples provided (unit test test5.cpp) but it really does not work, there is no SSL traffic on the wireshark we tried with many different brokers (sandboxes available on the web and it really does not work)

Do you guys are aware of any issues on the SSL implementation on the MQTT Paho C Library?

If there is no issue, is there any broker I can use? or any sample code that works ? I am using the Async version.

Thanks,
Paulo
Re: MQTT PAHO C Library SSL [message #1752055 is a reply to message #1751581] Wed, 18 January 2017 11:26 Go to previous messageGo to next message
alice alex is currently offline alice alexFriend
Messages: 5
Registered: January 2017
Junior Member
I also have similar issue ssl support in paho mqtt c client is not working.It shows failed to connect error return code -1 when connected to apache activemq broker.Also no errors are displayed in broker's log.So I cant debug the code
Re: MQTT PAHO C Library SSL [message #1752504 is a reply to message #1752055] Tue, 24 January 2017 14:46 Go to previous messageGo to next message
daniel grazioli is currently offline daniel grazioliFriend
Messages: 1
Registered: January 2017
Junior Member
Downloaded and compiled last github repo (cmake -g "Unix Makefiles" ... with SSL) with apparently no issues at compilation/install.
Ran the following command (Debian 7 with the last available libssl-dev)
./paho_cs_pub testssl --host test.mosquitto.org --port 8883 --qos 1
with TRACE on I get the following results
(same results with a different qos ... etc)

Using topic testssl
=========================================================
Trace Output
Product name: Paho Synchronous MQTT C Client Library
Version: 1.0.3
Build level: Tue Jan 24 11:00:54 UTC 2017
/proc/version: Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.65-1+deb7u2

=========================================================
Connecting
20170124 143701.979 3 publisher -> CONNECT cleansession: 1 (0)
20170124 143702.044 waitfor unexpectedly is NULL for client publisher, packet_type 2, timeout 28780
20170124 143703.147 3 publisher -> CONNECT cleansession: 1 (0)
20170124 143703.216 waitfor unexpectedly is NULL for client publisher, packet_type 2, timeout 27613
Failed to connect

Same results on several test brokers online.
Done several tests using the distributed samples.
I could connect successfully to the same brokers using node.js mqtt stuff - so this likely is an issue on the client side.

Using paho_c_pub etc. (no SSL) works.
Re: MQTT PAHO C Library SSL [message #1771080 is a reply to message #1752504] Mon, 21 August 2017 18:28 Go to previous message
Daniel Hernandez is currently offline Daniel HernandezFriend
Messages: 2
Registered: August 2017
Junior Member
check this link https://github.com/eclipse/paho.mqtt.cpp/issues/93


gcc mqttTest.c -o mqtttestc -l pthread -l paho-mqtt3as

https://github.com/eclipse/paho.mqtt.cpp/issues/93
Previous Topic:Unable to authenticate bluemix connection
Next Topic:Build paho c for iOS
Goto Forum:
  


Current Time: Thu Apr 25 16:42:42 GMT 2024

Powered by FUDForum. Page generated in 0.03509 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top