Skip to main content



      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 12:46 Go to next message
Eclipse UserFriend
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 06:39 Go to previous messageGo to next message
Eclipse UserFriend
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 08:51 Go to previous messageGo to next message
Eclipse UserFriend
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 00:17 Go to previous messageGo to next message
Eclipse UserFriend
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 10:24 Go to previous messageGo to next message
Eclipse UserFriend
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 12:20 Go to previous message
Eclipse UserFriend
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: Tue Jul 01 00:55:46 EDT 2025

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

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

Back to the top