This article will around the core concepts related to MQTT connection authentication in EMQ X, introduce the authentication methods supported by EMQ X and the applicable scene. The MQTT related authentication chain, authentication process/principle, and configuration points will be explained through the working mechanism and configuration principles to let you quickly master the EMQ X authentication configuration method.
EMQ X MQTT 5.0 topic rewrite supports rewriting topic A to topic B, when subscribing topics, publishing messages and unsubscribing in MQTT client according to the rule configured by clients.
EMQ X MQTT broker authentication plugin will throw authentication and access control event for each MQTT client to the user's own WebServer, to implement authentication and ACL.
MQTT Safety specifications are fully supported by EMQ, and the built-in safety functions can be used out-of-the-box without programming, which can quickly eliminate security risks in projects.
In Internet applications, message queues are generally integrated to perform operations such as peak clipping, current limiting, and queue processing to decouple data from services. With the help of RabbitMQ, Kafka, RocketMQ, Pulsar and other message and stream middleware bridging functions provided by EMQ X, IoT projects can also use this model to solve the above problems.
This example will demonstrate how to report the temperature and humidity data collected by the DHT11 sensor to the MQTT service in the cloud through the MQTT protocol and the NodeMCU based on ESP8266 , and show how the application subscribes to and processes the data.
The types of IoT devices are complex, and the encoding formats used by various vendors are different. Therefore, when accessing the IoT platform, a unified data format is required, so that applications of equipment on the platform can be managed.
EMQ X nodes can be bridged by other types of MQTT message middleware to achieve cross-platform message subscription and post. In this article, we present a configuration example to illustrate how to configure the bridge from Mosquitto to EMQ X.
EMQ X has built-in support for TLS/DTLS, including support for multiple authentications, such as one-way or two-way authentication and X.509 certificate, and LB Proxy Protocol V1/2. You can enable TLS/DTLS for all protocols supported by EMQ X, or configure the HTTP API provided by EMQ X to use TLS. This article describes how to enable TLS for MQTT in EMQ X by means of self-signed certificate.