mqtt-cli icon indicating copy to clipboard operation
mqtt-cli copied to clipboard

Problems using secure connection

Open lardeh opened this issue 3 years ago • 0 comments

Hi. We are tying to setup a one-way SSL connection. And have tried different settings, as such: mqtt pub -t 'MQTT/TEST2' -h thehostname -p 1234 -s true --cafile cabundle_der.pem --capath /path/to/folder/withcert -m 123 We get the follwoing error: Invalid value for option '--capath' (DIR): cannot convert ' /path/to/folder/withcert' to X509Certificate (The given directory does not contain any valid certificates) Try 'mqtt pub --help' for more information. We have tried without cafile and without capath, but get similar errors.

We have tried using certificates that are DER and Base64 encoded.

Are we doing anything wrong here?

lardeh avatar Feb 28 '22 09:02 lardeh