Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Configure Mosquitto broker with TLS(Configure Mosquitto broker with TLS)
Configure Mosquitto broker with TLS [message #1731470] Thu, 05 May 2016 16:46 Go to next message
sonal ghotavadekar is currently offline sonal ghotavadekarFriend
Messages: 1
Registered: May 2016
Junior Member
I am trying to configure Mosquitto broker with TLS support using the steps mentioned in the following mosquitto.conf file:


# mosquitto.conf
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
cafile /etc/mosquitto/ca_certificates/ca.crt
certfile /etc/mosquitto/certs/myhost.crt
keyfile /etc/mosquitto/certs/myhost.key





I want to use MQTT with TLS .

But I am getting error for all the parameters except "listener" that are configured in mosquitto.conf file.

For e.g.
$ mosquitto -c mosquitto.conf
Error: Unknown configuration variable "cafile"
Error: Unable to open configuration file.

Which version of mosquitto supports TLS? Or is there anything else that I am missing?
Re: Configure Mosquitto broker with TLS [message #1731508 is a reply to message #1731470] Fri, 06 May 2016 10:39 Go to previous messageGo to next message
James Sutton is currently offline James SuttonFriend
Messages: 69
Registered: July 2015
Member
This configuration is working correctly on my server:

listener 8883
certfile /etc/mosquitto/ca_certificates/cert.pem
keyfile  /etc/mosquitto/ca_certificates/privkey.pem
cafile   /etc/mosquitto/ca_certificates/fullchain.pem
Re: Configure Mosquitto broker with TLS [message #1749414 is a reply to message #1731470] Tue, 06 December 2016 13:51 Go to previous messageGo to next message
Alexandra Soare is currently offline Alexandra SoareFriend
Messages: 1
Registered: December 2016
Junior Member
Hello! Did you find any solution for this topic?
I have a similar problem.
Thank-you!
Re: Configure Mosquitto broker with TLS [message #1751155 is a reply to message #1731508] Thu, 05 January 2017 05:17 Go to previous messageGo to next message
alice alex is currently offline alice alexFriend
Messages: 5
Registered: January 2017
Junior Member
Hello! Did you find any solution for this topic?
I have a similar problem.What is the solution ??
Re: Configure Mosquitto broker with TLS [message #1751994 is a reply to message #1751155] Tue, 17 January 2017 15:24 Go to previous message
James Sutton is currently offline James SuttonFriend
Messages: 69
Registered: July 2015
Member
Have you tried using the configuration in my example? If it didn't work, what errors did you see?
Previous Topic:Paho C library SSL connection to MQTT broker not working
Next Topic:Publishing the Mqtt messages
Goto Forum:
  


Current Time: Sat Sep 22 20:21:38 GMT 2018

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

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

Back to the top