Page 1 of 1

Can't install Espressif IDF tools in VScode

Posted: Sat Oct 02, 2021 1:20 pm
by fuhongshuo
there is OUTPUT below . I have tried hundreds times, how can I fix it?
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)
Failed download. Retrying...
Error: Error: HTTP/HTTPS Request error https://dl.espressif.com/dl/idf-git/idf ... -win64.zip
Waiting 8 seconds...
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)
Failed download. Retrying...
Error: Error: HTTP/HTTPS Request error https://dl.espressif.com/dl/idf-git/idf ... -win64.zip
Waiting 16 seconds...
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)
Failed download. Retrying...
Error: Error: HTTP/HTTPS Request error https://dl.espressif.com/dl/idf-git/idf ... -win64.zip
Installing C:\Users\13776\.espressif\tools\idf-git\2.30.1 ...
Error during ESP-IDF setup

Re: Can't install Espressif IDF tools in VScode

Posted: Sun Oct 03, 2021 12:01 pm
by bytearray
I had the same problem just now, it looks like Espressif keeps allowing this HTTPS certificate error to happen for a few years now without providing a clear answer how to workaround it let alone fix it for good.

So I spent a few hours and came to this workaround: use the offline installer available here https://dl.espressif.com/dl/esp-idf/

It worked for me, I was installing the ESP-IDF extension for VSCode when I came across the problem, but after downloading and installing the large offline installer, I went back to VSCode and managed to successfuly configure the ESP-IDF extention.

I hope it also works for you and everybody else that eventually finds this post. Cheers.

Re: Can't install Espressif IDF tools in VScode

Posted: Mon Oct 04, 2021 6:24 am
by ESP_Roland