Information regarding integration of MQTT certificates
Posted: Tue Sep 05, 2023 10:08 am
Hi,
As I'm new to ESP32, I'm using an ESP-WROOM-32 module for the first time. I was trying to compile the ESP-AT firmware to the module by cloning it from https://github.com/espressif/esp-at.git. I was able to compile it successfully and flashed the firmware using esptool.py.
I have tried the MQTT AT commands to connect and exchange data. It works. Now I want to integrate my own certificate that will help to connect my MQTT server.
Here I'm a little lost, I don't know where to start and how to integrate it with the ESP-AT image?
I have 3 files mqtt_ca.crt, mqtt_client.crt, mqtt_client.key and I want to add these 3 certificates with the ESP-AT firmware.
I'm trying the SYSFLASH command to query:
AT+SYSFLASH?
+SYSFLASH:"mfg_nvs",1,2,0x21000,0x1c000
+SYSFLASH:"fatfs",1,129,0x70000,0x90000
OK
SYSFLASH should show me the below output as per the ESP document:
+SYSFLASH:"ble_data",64,1,0x21000,0x3000
+SYSFLASH:"server_cert",64,2,0x24000,0x2000
+SYSFLASH:"server_key",64,3,0x26000,0x2000
+SYSFLASH:"server_ca",64,4,0x28000,0x2000
+SYSFLASH:"client_cert",64,5,0x2a000,0x2000
+SYSFLASH:"client_key",64,6,0x2c000,0x2000
+SYSFLASH:"client_ca",64,7,0x2e000,0x2000
+SYSFLASH:"factory_param",64,8,0x30000,0x1000
+SYSFLASH:"wpa2_cert",64,9,0x31000,0x2000
+SYSFLASH:"wpa2_key",64,10,0x33000,0x2000
+SYSFLASH:"wpa2_ca",64,11,0x35000,0x2000
+SYSFLASH:"mqtt_cert",64,12,0x37000,0x2000
+SYSFLASH:"mqtt_key",64,13,0x39000,0x2000
+SYSFLASH:"mqtt_ca",64,14,0x3b000,0x2000
+SYSFLASH:"fatfs",1,129,0x70000,0x90000
OK
Regards
As I'm new to ESP32, I'm using an ESP-WROOM-32 module for the first time. I was trying to compile the ESP-AT firmware to the module by cloning it from https://github.com/espressif/esp-at.git. I was able to compile it successfully and flashed the firmware using esptool.py.
I have tried the MQTT AT commands to connect and exchange data. It works. Now I want to integrate my own certificate that will help to connect my MQTT server.
Here I'm a little lost, I don't know where to start and how to integrate it with the ESP-AT image?
I have 3 files mqtt_ca.crt, mqtt_client.crt, mqtt_client.key and I want to add these 3 certificates with the ESP-AT firmware.
I'm trying the SYSFLASH command to query:
AT+SYSFLASH?
+SYSFLASH:"mfg_nvs",1,2,0x21000,0x1c000
+SYSFLASH:"fatfs",1,129,0x70000,0x90000
OK
SYSFLASH should show me the below output as per the ESP document:
+SYSFLASH:"ble_data",64,1,0x21000,0x3000
+SYSFLASH:"server_cert",64,2,0x24000,0x2000
+SYSFLASH:"server_key",64,3,0x26000,0x2000
+SYSFLASH:"server_ca",64,4,0x28000,0x2000
+SYSFLASH:"client_cert",64,5,0x2a000,0x2000
+SYSFLASH:"client_key",64,6,0x2c000,0x2000
+SYSFLASH:"client_ca",64,7,0x2e000,0x2000
+SYSFLASH:"factory_param",64,8,0x30000,0x1000
+SYSFLASH:"wpa2_cert",64,9,0x31000,0x2000
+SYSFLASH:"wpa2_key",64,10,0x33000,0x2000
+SYSFLASH:"wpa2_ca",64,11,0x35000,0x2000
+SYSFLASH:"mqtt_cert",64,12,0x37000,0x2000
+SYSFLASH:"mqtt_key",64,13,0x39000,0x2000
+SYSFLASH:"mqtt_ca",64,14,0x3b000,0x2000
+SYSFLASH:"fatfs",1,129,0x70000,0x90000
OK
Regards