编译hello world出 Invalid certificate 错误

caoguohui1980
Posts: 1
Joined: Sat Oct 09, 2021 9:33 am

编译hello world出 Invalid certificate 错误

Postby caoguohui1980 » Sat Oct 09, 2021 12:45 pm

你好,我使用的是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#

这要怎么解决,谢谢

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 编译hello world出 Invalid certificate 错误

Postby ESP_ICY » Mon Oct 11, 2021 7:36 am

证书过期了,可以查看https://github.com/espressif/esp-idf/issues/7631中的解决办法

Who is online

Users browsing this forum: No registered users and 77 guests