'Returns a formatted version of the data in the
certificate provided by the other end of the SSL channel.
Return None if no certificate was provided, {} if a
certificate was provided, but not validated.'

def getpeercert(self, binary_form=False):

    return self._sslobj.peer_certificate(binary_form)
