Page 1 of 1

IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

Posted: Tue Nov 08, 2022 6:39 am
by JRBonarius
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?

Re: IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

Posted: Tue Nov 08, 2022 9:29 am
by Sprite
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.

Re: IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

Posted: Wed Nov 09, 2022 7:22 am
by Roland
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.

Re: IDF Tools installation - Python SSL: CERTIFICATE_VERIFY_FAILED

Posted: Thu Apr 17, 2025 10:29 am
by annayshayma
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!