src/OpenSSL/SSL.py
def get_certificate(self):
        """
        Retrieve the local certificate (if any)

        :return: The local certificate
        """
        cert = _lib.SSL_get_certificate(self._ssl)
        if cert != _ffi.NULL:
            _lib.X509_up_ref(cert)
            return X509._from_raw_x509_ptr(cert)
        return None
def get_certificate(self):
        """
        Retrieve the local certificate (if any)

        :return: The local certificate
        """
        cert = _lib.SSL_get_certificate(self._ssl)
        if cert != _ffi.NULL:
            _lib.X509_up_ref(cert)
            return X509._from_raw_x509_ptr(cert)
        return None
def get_certificate ( self ) : cert = _lib . SSL_get_certificate ( self . _ssl ) if cert != _ffi . NULL : _lib . X509_up_ref ( cert ) return X509 . _from_raw_x509_ptr ( cert ) return None
Retrieve the local certificate (if any)

        :return: The local certificate
Retrieve the local certificate ( if any )