From 22d3eda7446816494b841ac7bb2fa2bebf192af6 Mon Sep 17 00:00:00 2001 From: Alexandre B Date: Thu, 4 Jul 2024 00:57:37 -0400 Subject: [PATCH] . --- ESP32_Temperture-Node/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ESP32_Temperture-Node/README.md b/ESP32_Temperture-Node/README.md index d532691c9..cc5ee6dcd 100644 --- a/ESP32_Temperture-Node/README.md +++ b/ESP32_Temperture-Node/README.md @@ -30,7 +30,7 @@ networks:

/mosquitto/mosquitto.conf

-> [!NOTE] +> [!WARNING] > If you are using IP addresses, then issue certificates and keys to the corresponding IP address of MQTT brocker ``` text @@ -63,7 +63,7 @@ connection.setServer(mqtt_server, 8883); // mqtt_server -> 192.168.50.16

secrets.h

-> [!NOTE] +> [!TIP] > Create file called secrets.h to store configuration information about Wi-Fi, and encryption keys. Add entry to .gitignore file to exclude secrets.h from being pushed to GitHub ```text @@ -115,7 +115,7 @@ openssl req -out mosquitto.csr -key mosquitto.key -new -subj '/CN=Mosquitto_bork openssl x509 -req -in mosquitto.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out mosquitto.crt -days 365 -passin pass:1234 ``` -> [!NOTE] +> [!IMPORTANT] > Mostly, the client verifies the adress of the mosquitto server, so its necessary to set the CN to the correct adress (eg. yourserver.com)!!!

These certificates are only needed if the mosquitto broker requires a certificate for client autentithication (require_certificate is set to true in mosquitto config)

@@ -131,7 +131,7 @@ openssl x509 -req -in esp.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out esp. ``` > [!NOTE] -> If the server (mosquitto) identifies the clients based on CN key, its necessary to set it to the correct value, or else it can be blank. See the Mosquitto config. +> If MQTT Broker identifies the clients based on CN key, its necessary to set it to the correct value, or else it can be blank. See official Mosquitto config. ```text openssl req -new -x509 -days 365 -extensions v3_ca -keyout ca.key -out ca.crt -passout pass:1234 -subj '/CN=myserver.dynamic-dns.net'