[Bug Report]: Configuring extension fails with error "certificate has expired" (VSC-762)
See original GitHub issueDescribe the bug
I get Error: certificate has expired errors when configuring the extension and/or installing IDF and toolchain.
Everything was working this morning, and I went to reconfigure to change path and it started to fail. I reinstalled VS code, removed and reinstalled the extension with same result.
After much troubleshooting, it seems it could be related to DST Root CA X3 expiration (Let’s Encrypt root). It expired this morning (local time).
To Reproduce From a clean install, just execute ESP-IDF Configure ESP-IDF extension command and watch
Environment (please complete the following information):
OS win32 x64 6.1.7601
System environment variable IDF_PYTHON_ENV_PATH
undefined
System environment variable PYTHON
undefined
Visual Studio Code version 1.60.2
Visual Studio Code language en
Visual Studio Code shell C:\Windows\System32\cmd.exe
ESP-IDF Extension version 1.2.0
Also saw same error on colleague running Win10.
Output
channel ESP-IDF:
Error: certificate has expired
at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
at TLSSocket.emit (events.js:315:20)
at TLSSocket._finishInit (_tls_wrap.js:932:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)
Error opening esp-idf version list file. HTTP/HTTPS Request error https://dl.espressif.com/dl/esp-idf/idf_versions.txt
Logs esp_idf_vsc_ext.log
Extension Configuration settings “idf.adapterTargetName”: “esp32”, “idf.gitPath”: “C:\Users\X\.espressif\tools\idf-git\2.30.1\cmd\git.exe”, “idf.pythonBinPathWin”: “”
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6
Top GitHub Comments
I get the same issue which by setting the date to the 29th of the 9th can be resolved. Thanks for the workaround while the cirtificates expiration date is being fixed.
Issue seems resolved now, looks like Espressif updated the certificate chain on their server