bad certificate error

Jean-Paul Calderone exarkun at divmod.com
Tue Jul 28 09:48:02 EDT 2009


On Tue, 28 Jul 2009 03:35:55 -0700 (PDT), jakecjacobson <jakecjacobson at gmail.com> wrote:
> [snip]
>
>"Invalid how?  Self signed certificate? Domain mismatch? Expired
>certificate?"  It is a server name mismatch.

Python 2.4 is not capable of allowing you to customize this verification
behavior.  It is hard coded to let OpenSSL make the decision about whether
to accept the certificate or not.

Either M2Crypto or pyOpenSSL will let you ignore verification errors.  The
new ssl module in Python 2.6 may also as well.

Jean-Paul



More information about the Python-list mailing list