question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report]: Configuring extension fails with error "certificate has expired" (VSC-762)

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

3reactions
pryingcommented, Oct 1, 2021

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.

0reactions
sinope-dbcommented, Oct 5, 2021

Issue seems resolved now, looks like Espressif updated the certificate chain on their server

Read more comments on GitHub >

github_iconTop Results From Across the Web

API request failed - Error: certificate has expired (#245) - GitLab
Workaround (read this first) It seems that Let's Encrypt certificate is getting "wrongly" classified as expired. What helps for most people.
Read more >
CertificateStatusAlarm - There are certificate that expired or ...
It triggers a Certificate Status alarm within VMware vCenter Server if any certificate is close to its expiration date.
Read more >
How do I resolve the error: "Certificate has expired or is not yet ...
This error is showing because the system clock is not Today's Date. Steps to Correct: -Under Start Menu. Select Settings - Control Panel...
Read more >
Certificate Error with SonarQube Extension
We have an Azure Yaml Build Pipeline setup that includes a task to communicate ... Then it started reporting a certificate expired error:....
Read more >
Correct expired Let's Encrypt certificate on EC2 instances - AWS
How do I resolve a certificate expiration error for the Let's ... This issue is corrected in Ubuntu 16.04 with a recent release...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found