Issue in configuring self-signed SSL on Mosquitto 1.3.5

Asked by ragandla

Hello,

We have followed the below blog post & mosquitto doc to create & configure the self-signed certificates on Mosquitto.

http://www.embedded101.com/Blogs/PaoloPatierno/entryid/366/mqtt-over-ssl-tls-with-the-m2mqtt-library-and-the-mosquitto-broker
http://mosquitto.org/man/mosquitto-tls-7.html

Version: mosquitto-1.3.5

After creating the keystore & certificates, getting errors while running the mosquitt.conf file and the error is below:

[root@pettraxappdev mosquitto-1.3.5]# mosquitto -c mosquitto_ssl.conf -v
1425041141: mosquitto version 1.2.3 (build date 2013-12-02 23:34:54+0000) starting
1425041141: Config loaded from mosquitto_ssl.conf.
1425041141: Opening ipv6 listen socket on port 8883.
1425041141: Opening ipv4 listen socket on port 8883.
1425041141: Error: Unable to load CA certificates. Check cafile "/root/Desktop/mosquitto-1.3.5/m2mqtt_ca.crt" and capath "/root/Desktop/mosquitto-1.3.5/".

All the files are exist in the same folder path.

Your help is highly appreciated to resolve this issue.

Best Regards,
Ravi Gandla

Question information

Language:
English Edit question
Status:
Expired
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
ragandla (ravi-gandla) said :
#2

Here's the additional information:

Updated mosquitto.conf file contents:

user mosquitto
max_connections 100

# Certificate based SSL/TLS support
listener 1883
cafile /root/Desktop/mosquitto-1.3.5/m2mqtt_ca.crt
capath /root/Desktop/mosquitto-1.3.5/
certfile /root/Desktop/mosquitto-1.3.5/m2mqtt_srv.crt
keyfile /root/Desktop\mosquitto-1.3.5/m2mqtt_srv.key
tls_version tlsv1
require_certificate false

Regards,
Ravi

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.