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

Antoine Pitrou solipsis at
Thu Aug 16 13:48:39 CEST 2012


Gustavo Baratto <gbaratto <at>> 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:

(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



Software development and contracting:

More information about the Python-list mailing list