SSL/TLS PEM file during runtime
Posted: Tue May 21, 2024 10:26 am
Hi,
I need guidence. We are making IoT infrastructure with ESP32C3, ESP-IDF. I need MQTT WSS, MQTTS and HTTPS requests. So far I used OpenSSL to peek cerificate of servers and extract PEM file (examples). Everything is working. But how should it look like in production code?
My idea: do the same on ESP during runtime upon connection failure, recreate those files by connecting to the server.
I'm quite rookie in IoT.
I need guidence. We are making IoT infrastructure with ESP32C3, ESP-IDF. I need MQTT WSS, MQTTS and HTTPS requests. So far I used OpenSSL to peek cerificate of servers and extract PEM file (examples). Everything is working. But how should it look like in production code?
My idea: do the same on ESP during runtime upon connection failure, recreate those files by connecting to the server.
I'm quite rookie in IoT.