Securing an MQTT 3.1.1 Mosquitto Server

In this chapter, we will secure an MQTT 3.1.1 Mosquitto server. We will make all the configurations required to work with digital certificates to encrypt all the data sent between MQTT clients and the server. We will use TLS and we will learn to work with client certificates for each MQTT client. We will also learn to force the desired TLS protocol version. We will gain an understanding of the following:

  • The importance of securing a Mosquitto server
  • Generating a private certificate authority to use TLS with Mosquitto
  • Creating a certificate for the Mosquitto server
  • Configuring TLS transport security in Mosquitto
  • Testing the MQTT TLS configuration with command-line tools
  • Testing the MQTT TLS configuration ...

Get Hands-On MQTT Programming with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.