본문 바로가기
Embedded

VSCode ESP-IDF ‘Invalid certificate’ error

by poin 2022. 1. 6.

Problem

Build 수행시 Terminal에서 error가 발생

VSCode에서 Espressif IDF Extension을 통해 ESP-IDF framework를 이용해 coding을 진행하고 build할 경우, 위와 같은 error가 발생할 경우가 있다.

 

 

FAILED: esp-idf/mbedtls/x509_crt_bundle (Invalid certificate) (IDFGH-3345) · Issue #5322 · espressif/esp-idf

INSTRUCTIONS Environment Build System: [idf.py] Operating System: [Windows] (Windows only) environment type: [Plain Command Prompt]. Using an IDE?: [No] Problem Description //Detailed problem descr...

github.com

 

esp_crt_bundle: remove EC-ACC certificate (IDFGH-5944) by electrocucaracha · Pull Request #7632 · espressif/esp-idf

Removing the EC-ACC certificate given it has Negative serial value invalid for RFC 5280. Fix #7631

github.com

'Invalid certificate'라는 것인데, 위 issue에서 보면 cryptography쪽에 certificate bundle에 문제가 있는것 같다.

 

Solution

일단 당장 해결한 방법은 Certificate Bundle 설정을 수정하는 것이다. VSCode에서 'View → Command Palette...'에서 'ESP-IDF: Configure ESP-IDF Extension' page에 진입한다.

 

그리고 위 사진처럼 'certi...'를 검색해서, 'Certificate Bundle'에서 'Enable trusted root certificate bundle'을 체크 '해제'한다.

 

이후 Build를 진행하면, 정상적으로 수행되었다.

'Embedded' 카테고리의 다른 글

ESP32-CAM Home Assistant Integration (ESPHome)  (0) 2022.01.24
VSCode에서 ESP-IDF 개발환경 구축하기  (0) 2022.01.06

댓글