tls on mosquito_pub, works mqtt-spy

18 views
Skip to first unread message

bouw...@gmail.com

unread,
Sep 15, 2017, 5:03:30 PM9/15/17
to MQTT
I'm trying to get mosquitto_pub to work using tls.

-mosquitto_pub works if I use a username and password.
-I can connect to the broker using tls if I use mqtt-spy.

Here is my mosquitto_pub cmd...
mosquitto_pub -h xx.xx.xx.x -p 8883 -t lltest/test -m "hi people" --cafile broker-prod-cacert.pem --cert gateway_prod.cert.pem --key gateway_prod.key.pem

-When I run this I get the error: Error: A TLS error occurred.

In mqtt-spy (where it works) I have to check the box for "Client Key in PEM format".  Is there something comparable option in mosquitto that I need to set?

Any help is greatly appreciated,
Brent

Reply all
Reply to author
Forward
0 new messages