ESP32 OTA Example pem file.
Posted: Sat Sep 29, 2018 6:45 am
Hello All,
I am new to TLS topic. I am trying to integrate OTA example given in esp-idf (https://github.com/espressif/esp-idf/tr ... system/ota). I found following variable names declared as Extern.
extern const uint8_t server_cert_pem_start[] asm("_binary_ca_cert_pem_start");
extern const uint8_t server_cert_pem_end[] asm("_binary_ca_cert_pem_end");
on compilation I am getting error undeclared / undefined variable which is obvious.
I guess that these variables are declared in some other file or generated by script using .pem file as input. But the flow of generation I am not able to understand.
I have also generated ca_cert.pem and ce_key.pem file successfully as directed in the readme section.
It would be helpful if someone can help me to resolve the issue.
Thanks in advance
Gyanesh
I am new to TLS topic. I am trying to integrate OTA example given in esp-idf (https://github.com/espressif/esp-idf/tr ... system/ota). I found following variable names declared as Extern.
extern const uint8_t server_cert_pem_start[] asm("_binary_ca_cert_pem_start");
extern const uint8_t server_cert_pem_end[] asm("_binary_ca_cert_pem_end");
on compilation I am getting error undeclared / undefined variable which is obvious.
I guess that these variables are declared in some other file or generated by script using .pem file as input. But the flow of generation I am not able to understand.
I have also generated ca_cert.pem and ce_key.pem file successfully as directed in the readme section.
It would be helpful if someone can help me to resolve the issue.
Thanks in advance
Gyanesh