IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

JRBonarius
Posts: 1
Joined: Tue Nov 08, 2022 6:24 am

IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

Postby JRBonarius » Tue Nov 08, 2022 6:39 am

Im am using the universal online installer for IDF tools from : https://dl.espressif.com/dl/esp-idf/?idf=4.4
Version: 2.16

The installation exits with error code 1 as a result of the python component of the installation failing. Here is the snippet from the installation logs:

"WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)'))': /simple/click/"


When performing any type of Python installation or update, I cannot simply run the "py -m install x" command and need to instead run the command with added paramters as follows: "py -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org x"

I believe this same fix would ensure that the IDF tools installation would complete succesfully. Is there a way to add these paratmers to the idf-tools.py script that is running these installs/updates?
Attachments
Setup Log 2022-11-08 #002.txt
(54.53 KiB) Downloaded 390 times

Sprite
Espressif staff
Espressif staff
Posts: 10650
Joined: Thu Nov 26, 2015 4:08 am

Re: IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

Postby Sprite » Tue Nov 08, 2022 9:29 am

Honestly, that sounds like there's much more wrong with your setup. There's no reason you should normally have to bypass cert verification for a host like that.

User avatar
Roland
Espressif staff
Espressif staff
Posts: 273
Joined: Tue Oct 09, 2018 10:28 am

Re: IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

Postby Roland » Wed Nov 09, 2022 7:22 am

The issue is with your Windows' certificates. Please search the manuals how to update it.

The workaround is to download and use the offline installer. Modern browsers use their own set of certificates independently from the ones provided by Windows.

annayshayma
Posts: 1
Joined: Thu Apr 17, 2025 7:42 am

Re: IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

Postby annayshayma » Thu Apr 17, 2025 10:29 am

The SSL issue related to Python that you are facing, you can check it out at:- https://cheapsslweb.com/blog/ssl-certif ... in-python/. May you also find the solution to it.

I hope it helps!

Who is online

Users browsing this forum: No registered users and 1 guest