Discussion:
CERTIFICATE_VERIFY_FAILED Windows only?
(too old to reply)
Chris Angelico
2021-11-27 21:59:22 UTC
Permalink
On Sun, Nov 28, 2021 at 6:38 AM Ulli Horlacher
Loading Image...
Loading Image...
Why does Python complain (only on Windows!)?
What version of Python is it, and where did you install it from? On
some versions, Python will use Microsoft's provided certificate store.
One solution may be to fetch Mozilla's root certs from PyPI:

https://pypi.org/project/certifi/

ChrisA
Ulli Horlacher
2021-11-28 00:27:52 UTC
Permalink
Post by Chris Angelico
On Sun, Nov 28, 2021 at 6:38 AM Ulli Horlacher
https://fex.flupp.org/fop/U4xC4kz8/X-20211127192031.png
https://fex.flupp.org/fop/mBabXKSz/X-20211127192416.png
Why does Python complain (only on Windows!)?
What version of Python is it, and where did you install it from?
https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe
Post by Chris Angelico
On some versions, Python will use Microsoft's provided certificate store.
https://pypi.org/project/certifi/
C:\Users\admin>pip install certifi
Collecting certifi
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Installing collected packages: certifi
Successfully installed certifi-2021.10.8


Great!
Now my program runs without CERTIFICATE_VERIFY_FAILED
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: ***@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
Loading...