urllib getting SSL certificate info

Ghirai ghirai at ghirai.com
Tue Aug 19 16:06:30 EDT 2008


On Sunday 17 August 2008 20:15:47 John Nagle wrote:

>     If you really need details from the SSL cert, you usually have to use
> M2Crypto.  The base SSL package doesn't actually do much with certificates.
> It doesn't validate the certificate chain.  And those strings of
> attributes you can get are ambiguious; data fields may contain unescaped
> "/", which is the field separator.  I went through this last year and
> had to use M2Crypto, which is something of a headache but more or less
> works.
>
> 				John Nagle

Would you mind sharing some code? The module is pretty ugly and on top has no 
docs whatsoever; got tired of reading the source...

Thanks.

-- 
Regards,
Ghirai.



More information about the Python-list mailing list