CERTIFICATE_VERIFY_FAILED Windows only?
Chris Angelico
rosuav at gmail.com
Sat Nov 27 16:59:22 EST 2021
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? 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
More information about the Python-list
mailing list