Page 1 of 1

How to embed the certificate in MQTT SSL ESP IDF Example

Posted: Tue Oct 31, 2023 10:51 am
by begi78
Hello,

I try to run the MQTT SSL example in the esp idf environment. The probleme is that I don't know how to embed the mosquitto server certificate in the SSL example project. This is not detailled in the description of the example.

Do I need to use idf.py menuconfig ? Should I modify the sdkconfig file ? Which field to update ?

I need your help.

Thanks a lot
Bert

Re: How to embed the certificate in MQTT SSL ESP IDF Example

Posted: Wed Nov 01, 2023 10:52 pm
by MicroController
If you have the certificate in a .pem file, you can either
a) copy that file to main/mqtt_eclipseprojects_io.pem, or
b) change the location of the certificate to embed in the CMakeLists.txt to your .pem file.