ocsp_pyasn1.py
def extract_certificate_chain(self, connection):
        """
        Gets certificate chain and extract the key info from OpenSSL connection
        """
        cert_map = OrderedDict()
        logger.debug(
            "# of certificates: %s",
            len(connection.get_peer_cert_chain()))

        for cert_openssl in connection.get_peer_cert_chain():
            cert_der = dump_certificate(FILETYPE_ASN1, cert_openssl)
            cert = der_decoder.decode(
                cert_der, asn1Spec=rfc2459.Certificate())[0]
            subject_sha256 = self._get_subject_hash(cert)
            logger.debug(
                u'subject: %s, issuer: %s',
                nat_encoder(self._get_subject(cert)),
                nat_encoder(self._get_issuer(cert)))
            cert_map[subject_sha256] = cert

        return self.create_pair_issuer_subject(cert_map)

        Gets certificate chain and extract the key info from OpenSSL connection
        
Gets certificate chain and extract the key info from OpenSSL connection
Gets certificate chain and extract the key info from OpenSSL connection
def extract_certificate_chain(self, connection):
        cert_map = OrderedDict()
        logger.debug(
            "# of certificates: %s",
            len(connection.get_peer_cert_chain()))
        for cert_openssl in connection.get_peer_cert_chain():
            cert_der = dump_certificate(FILETYPE_ASN1, cert_openssl)
            cert = der_decoder.decode(
                cert_der, asn1Spec=rfc2459.Certificate())[0]
            subject_sha256 = self._get_subject_hash(cert)
            logger.debug(
                u'subject: %s, issuer: %s',
                nat_encoder(self._get_subject(cert)),
                nat_encoder(self._get_issuer(cert)))
            cert_map[subject_sha256] = cert
        return self.create_pair_issuer_subject(cert_map)
def extract_certificate_chain ( self , connection ) : cert_map = OrderedDict ( ) logger . debug ( "# of certificates: %s" , len ( connection . get_peer_cert_chain ( ) ) ) for cert_openssl in connection . get_peer_cert_chain ( ) : cert_der = dump_certificate ( FILETYPE_ASN1 , cert_openssl ) cert = der_decoder . decode ( cert_der , asn1Spec = rfc2459 . Certificate ( ) ) [ 0 ] subject_sha256 = self . _get_subject_hash ( cert ) logger . debug ( u'subject: %s, issuer: %s' , nat_encoder ( self . _get_subject ( cert ) ) , nat_encoder ( self . _get_issuer ( cert ) ) ) cert_map [ subject_sha256 ] = cert return self . create_pair_issuer_subject ( cert_map )
Gets certificate chain and extract the key info from OpenSSL connection
Gets certificate chain and extract the key info from OpenSSL connection
"""
        Gets certificate chain and extract the key info from OpenSSL connection
        """
self
connection