Creating an AWS credential header file on the ESP32
As stated, we will make a credential header file that contains the AWS root CA certificate, device certificate, and private key, which is requested for TLS setup. This header file will be imported and called by the main code on the ESP32.
You can find an example of the SecureCredential.h
header file at https://github.com/PacktPublishing/Accelerating-IoT-Development-with-ChatGPT/tree/main/Chapter_13. This header file will be called in main.cpp
. Your SecureCredential.h
contents shall look like the following screenshot.
Figure 13.25 – The SecureCredential.h file format example
In addition to the credential header file, we will have to create a hardware header file to read the ESP32 chipset hardware information, including the eFuse MAC address for deviceID
. You can find an example of the HardwareInfo.h
header file in the same link folder.
As long as you created these two header files, SecureCredential...