How to embed the certificate in MQTT SSL ESP IDF Example

begi78
Posts: 4
Joined: Mon Oct 09, 2023 5:24 pm

How to embed the certificate in MQTT SSL ESP IDF Example

Postby begi78 » Tue Oct 31, 2023 10:51 am

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

MicroController
Posts: 1706
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

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

Postby MicroController » Wed Nov 01, 2023 10:52 pm

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.

Who is online

Users browsing this forum: No registered users and 135 guests