Using HTTPSConnection and verifying server's CRT

Ng Pheng Siong ngps at
Mon Jan 31 17:29:48 CET 2005

According to Marc Poulhiès  <marc.poulhiesNO-SP4M at>:
> I tried to see if the M2Crypto has this possibility, but from my tests
> and from what I can find on the website, it seems not :/

How did you test and where on the website does it say not?

> Can someone confirm me this is not possible or point me to something
> that could help me?

M2Crypto does server cert verification. With M2Crypto's httpslib, you pass
in an SSL.Context instance to the HTTPSConnection constructor to configure
the SSL; one of the config knobs is cert verification. So, redo your test,
satisfy yourself that this is doable, and send me your code to include as
an example in the distribution. ;-)

M2Crypto even does client certs. Since Apr 2000, according to the very last
blog entry on the ZServerSSL page.

Ng Pheng Siong <ngps at> -+- M2Crypto, ZServerSSL for Zope, Blog -+- Database Engine with Transparent AES Encryption

More information about the Python-list mailing list