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

Gustavo Baratto gbaratto at gmail.com
Fri Aug 17 15:12:28 EDT 2012


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 <solipsis at pitrou.net> wrote:

>
> Hello,
>
> Gustavo Baratto <gbaratto <at> gmail.com> writes:
> >
> > 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:
>
> It does, in Python 3.2:
> http://docs.python.org/py3k/library/ssl.html#client-side-operation
>
> (although the getpeercert() doc should be updated to reflect this)
>
> If some information is still lacking from the returned value, please open
> an
> issue at http://bugs.python.org
>
> Regards
>
> Antoine.
>
>
> --
> Software development and contracting: http://pro.pitrou.net
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120817/16e2a63e/attachment.html>


More information about the Python-list mailing list