Testing the MQTT TLS configuration with GUI tools
Now, we will use the MQTT.fx GUI utility to generate another MQTT client that uses an encrypted connection to publish messages to the same topic: sensors/octocopter01/altitude. We have to make changes to the connection options to enable TLS and specify the certificate authority certificate file. Follow these steps:
- Launch MQTT.fx, select
local mosquittoin the drop-down located at the upper-left corner, and click on the configuration icon at the right-hand side of this drop-down and at the left-hand side of theConnectbutton. MQTT.fx will display theEdit Connection Profilesdialog box with different options for the connection profile namedlocal mosquitto. - Go to the
Broker Addresstextbox and enter the IPv4 or IPv6 address that we specified as the value in theCommon Namefield when we generated theserver.csrfile, that is, the server certificate signing request. If you used a host name as the value in theCommon Namefield instead of an...