SSL certificate for MQTT

I can connect to the MQTT using port 1883, but can't seem to generate the right sort of certificate to get the TLS connection to work

This just returns an error

mosquitto_sub -h glowmqtt.energyhive.com -u "me@email.com" -P "password" -t "SMART/HILD/AXXXXXXXXC" -p 8883 --cafile cert.crt -v -d

Client mosq-49fTRPeACxcj2Z45Pd sending CONNECT
OpenSSL Error: error:14007086:SSL routines:CONNECT_CR_CERT:certificate verify failed
Error: A TLS error occurred.

Any hints? Thanks

Comments

Sign In or Register to comment.