Page 1 of 1

编译hello world出 Invalid certificate 错误

Posted: Sat Oct 09, 2021 12:45 pm
by caoguohui1980
你好,我使用的是esp32-s2 cpu,按照编程指南快速入门操作,下载的idf-4.3.1版本,最后编译时出现如下错误:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/uwin/esp32kit/hello_world/build/bootloader
ninja: no work to do.
[292/604] Generating x509_crt_bundle
FAILED: cd /home/uwin/esp32kit/hello_world/build/esp-idf/mbedtls && /root/.espressif/python_env/idf4.3_py3.8_env/bin/python /home/uwin/esp32kit/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input /home/uwin/esp32kit/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q
gen_crt_bundle.py: Invalid certificate in /home/uwin/esp32kit/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
root@quantum-ubuntu:/home/uwin/esp32kit/hello_world#

这要怎么解决,谢谢

Re: 编译hello world出 Invalid certificate 错误

Posted: Mon Oct 11, 2021 7:36 am
by ESP_ICY
证书过期了,可以查看https://github.com/espressif/esp-idf/issues/7631中的解决办法