ocsp_pyasn1.py
def create_pair_issuer_subject(self, cert_map):
        """
        Creates pairs of issuer and subject certificates
        """
        issuer_subject = []
        for subject_der in cert_map:
            cert = cert_map[subject_der]

            nocheck, is_ca, ocsp_urls = self._extract_extensions(cert)
            if nocheck or is_ca and not ocsp_urls:
                # Root certificate will not be validated
                # but it is used to validate the subject certificate
                continue
            issuer_hash = self._get_issuer_hash(cert)
            if issuer_hash not in cert_map:
                # IF NO ROOT certificate is attached in the certificate chain
                # read it from the local disk
                self._lazy_read_ca_bundle()
                logger.debug(
                    'not found issuer_der: %s', self._get_issuer_hash(cert))
                if issuer_hash not in SnowflakeOCSP.ROOT_CERTIFICATES_DICT:
                    raise RevocationCheckError(
                        msg="CA certificate is NOT found in the root "
                            "certificate list. Make sure you use the latest "
                            "Python Connector package and the URL is valid.")
                issuer = SnowflakeOCSP.ROOT_CERTIFICATES_DICT[issuer_hash]
            else:
                issuer = cert_map[issuer_hash]

            issuer_subject.append((issuer, cert))
        return issuer_subject

        Creates pairs of issuer and subject certificates
        
Creates pairs of issuer and subject certificates
Creates pairs of issuer and subject certificates
def create_pair_issuer_subject(self, cert_map):
        issuer_subject = []
        for subject_der in cert_map:
            cert = cert_map[subject_der]
            nocheck, is_ca, ocsp_urls = self._extract_extensions(cert)
            if nocheck or is_ca and not ocsp_urls:
                continue
            issuer_hash = self._get_issuer_hash(cert)
            if issuer_hash not in cert_map:
                self._lazy_read_ca_bundle()
                logger.debug(
                    'not found issuer_der: %s', self._get_issuer_hash(cert))
                if issuer_hash not in SnowflakeOCSP.ROOT_CERTIFICATES_DICT:
                    raise RevocationCheckError(
                        msg="CA certificate is NOT found in the root "
                            "certificate list. Make sure you use the latest "
                            "Python Connector package and the URL is valid.")
                issuer = SnowflakeOCSP.ROOT_CERTIFICATES_DICT[issuer_hash]
            else:
                issuer = cert_map[issuer_hash]
            issuer_subject.append((issuer, cert))
        return issuer_subject
def create_pair_issuer_subject ( self , cert_map ) : issuer_subject = [ ] for subject_der in cert_map : cert = cert_map [ subject_der ] nocheck , is_ca , ocsp_urls = self . _extract_extensions ( cert ) if nocheck or is_ca and not ocsp_urls : continue issuer_hash = self . _get_issuer_hash ( cert ) if issuer_hash not in cert_map : self . _lazy_read_ca_bundle ( ) logger . debug ( 'not found issuer_der: %s' , self . _get_issuer_hash ( cert ) ) if issuer_hash not in SnowflakeOCSP . ROOT_CERTIFICATES_DICT : raise RevocationCheckError ( msg = "CA certificate is NOT found in the root " "certificate list. Make sure you use the latest " "Python Connector package and the URL is valid." ) issuer = SnowflakeOCSP . ROOT_CERTIFICATES_DICT [ issuer_hash ] else : issuer = cert_map [ issuer_hash ] issuer_subject . append ( ( issuer , cert ) ) return issuer_subject
Creates pairs of issuer and subject certificates
Creates pairs of issuer and subject certificates
"""
        Creates pairs of issuer and subject certificates
        """ # Root certificate will not be validated # but it is used to validate the subject certificate # IF NO ROOT certificate is attached in the certificate chain # read it from the local disk
self
cert_map