How to diagnose CERTIFICATE_VERIFY_FAILED on Windows for websites working in browsers?

dieter dieter at handshake.de
Fri Sep 9 02:22:39 EDT 2016


Chi Hsuan Yen <yan12125 at gmail.com> writes:
> ...
> Apparently OpenSSL verifies the whole certificate chain and
> report an error as soon as it finds an invalid certificate in the chain.

As it must, if you require verification.

When I remember right, you can disable the verification altogether
(though you should not for security reasons).

> My
> questions is: how to tell from several possible causes to
> CERTIFICATE_VERIFY_FAILED? Currently both expired self signed certificate
> leads to CERTIFICATE_VERIFY_FAILED. Thanks for any help or advice.

I would try to find (or write) a utility that follows the certificate
chain and provides details information about its state.




More information about the Python-list mailing list