mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

Error: Problem setting TLS options: File not found.

Open mrclbrchr opened this issue 4 years ago • 2 comments

Hello, im just trying to send some data using certificates. But i cant mention how to fix Error: Problem setting TLS options: File not found. My command looks like this:

mosquitto_pub -h XX.XX.XX.XX -p 8883 --capath /etc/ssl/certs/ --cert device-cert.pem --key device-key.pem -q 1 -t telemetry -m "Hello there"

Ive also tried it with sudo and tried the capath where i initially created the cert and key, but that also wont work. Im a bit helpless right now.

mrclbrchr avatar Jul 23 '21 09:07 mrclbrchr

Are device-cert.pem and device-key.pem in the current directory and have the correct permissions?

ralight avatar Aug 21 '21 08:08 ralight

anyone found solution for this?

cometta avatar Oct 02 '25 02:10 cometta