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: 71
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 messageGo to next message
James Sutton is currently offline James SuttonFriend
Messages: 71
Registered: July 2015
Member
Have you tried using the configuration in my example? If it didn't work, what errors did you see?
Re: Configure Mosquitto broker with TLS [message #1799939 is a reply to message #1751994] Mon, 17 December 2018 17:20 Go to previous message
Rockford Wei is currently offline Rockford WeiFriend
Messages: 1
Registered: December 2018
Junior Member
please DO NOT USE TABLE symbols in the configuration file. Good looking kills the configuration. just use one space that's enough, or make a PR to the github to fix this issue.
Previous Topic:Is it possible for a subscriber to know a publisher's client ID?
Next Topic:Mqtt yielding and MQTTCloseSession at the end of cycle function
Goto Forum:
  


Current Time: Fri Apr 19 12:14:48 GMT 2024

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

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

Back to the top