I am working on an application that requires TLS v1.3 & MQTT v5.0, and I have to build mosquitto MQTT brokers and subscribers, on Debian system of different physical hosts, as part of my work.
From mosquitto Github repository, I managed to build mosquitto libraries (v1.6.7) & binary tools (and its README.md
describes that TLS is enabled at build time by default) :
make WITH_DOCS=no
make install WITH_DOCS=no
I also set up CA certificates / server certificates (for the MQTT broker) , and modified mosquitto.conf
(learn from here). When I tried to publish a message to my MQTT brokers , I got following error :
mosquitto_pub -d --tls-version tlsv1.3 --cafile ./ca.crt -i rpi3peer -V mqttv5 -h 123.45.6.78 -p 8883 -u MY_BROKER_NAME -P BROKER_PASSWD -t "topic/placed/here" -m "put some messsage"
> Error: Protocol tlsv1.3 not supported
On the MQTT broker, it was just establishing a new connection at TCP level, then immediately closed, I also captured few packets between the broker and client using Wireshark, but there's no TLS v1.3 packet from there.
How could I deal with this issue ?