Re: SSLSocket.getpeercert() doesn't return issuer, serial number, etc

2012-08-17 Thread Gustavo Baratto
Awesome guys! Thank you very much! I ended up using "binary_form=True" and using M2Crypto to parse the cert. Cheers, g. On Thu, Aug 16, 2012 at 4:48 AM, Antoine Pitrou wrote: > > Hello, > > Gustavo Baratto gmail.com> writes: > > > > SSL.Socket.g

SSLSocket.getpeercert() doesn't return issuer, serial number, etc

2012-08-15 Thread Gustavo Baratto
Hello there, SSL.Socket.getpeercert() doesn't return essential information present in the client certificate (issuer, serial number, not before, etc), and it looks it is by design: http://docs.python.org/library/ssl.html#ssl.SSLSocket.getpeercert http://hg.python.org/cpython/file/b878df1d23b1/Mod