Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » MQTT CONNECTION OVER SSL
MQTT CONNECTION OVER SSL [message #1766364] Tue, 20 June 2017 14:52 Go to next message
swetalin priyadarshini is currently offline swetalin priyadarshiniFriend
Messages: 5
Registered: June 2017
Junior Member
Hi
I want to use mqtt communication over SSL. How to configure the PUB/SUB blocks to communicate over SSL?
Re: MQTT CONNECTION OVER SSL [message #1766402 is a reply to message #1766364] Wed, 21 June 2017 06:54 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

Hi,

according to the paho documentation you need to replace the tcp in the server adresses with ssl. For that you also need to enable ssl/tsl in your broker and in your paho library which you link to 4diac.
Re: MQTT CONNECTION OVER SSL [message #1766426 is a reply to message #1766402] Wed, 21 June 2017 10:48 Go to previous messageGo to next message
swetalin priyadarshini is currently offline swetalin priyadarshiniFriend
Messages: 5
Registered: June 2017
Junior Member
Thank you for replying.
I have a mosquitto broker running on my machine. I have configured it with a username and password. So to publish or subscribe anything to/from the broker I need to provide the username and password. Is there any way I can provide it in the PUB/SUB blocks?
Re: MQTT CONNECTION OVER SSL [message #1766448 is a reply to message #1766426] Wed, 21 June 2017 14:24 Go to previous messageGo to next message
Martin Melik Merkumians is currently offline Martin Melik MerkumiansFriend
Messages: 117
Registered: March 2016
Senior Member
To my knowledge, there isn't a way to provide username and password via pub/sub blocks. You have to modify the parameter parser and then provide the extracted values to the MQTTHandler/Paho
Re: MQTT CONNECTION OVER SSL [message #1766633 is a reply to message #1766448] Fri, 23 June 2017 16:29 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

another option could be to set up a private public key and allow forte to access it. This may also be a little bit more secure then storing a password in 4diac projects.
Previous Topic:MQTT Clarification
Next Topic:FORTE - Matlab TCP/IP communication
Goto Forum:
  


Current Time: Fri Apr 19 17:08:08 GMT 2024

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

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

Back to the top