CERTIFICATE_VERIFY_FAILED Windows only?
Ulli Horlacher
framstag at rus.uni-stuttgart.de
Sat Nov 27 19:27:52 EST 2021
Chris Angelico <rosuav at gmail.com> wrote:
> On Sun, Nov 28, 2021 at 6:38 AM Ulli Horlacher
> <framstag at rus.uni-stuttgart.de> wrote:
> >
> > My program uses https and runs fine on Linux, but on Windows it crashes:
> >
> > Google chrome and firefox both say the certifacte is valid:
> >
> > 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
> 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/
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: horlacher at tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
More information about the Python-list
mailing list