Projekt

Obecné

Profil

« Předchozí | Další » 

Revize bf9b096b

Přidáno uživatelem David Friesecký před téměř 4 roky(ů)

Re #8590 - Modified IF statement
- revocation data can be None

Zobrazit rozdíly:

src/services/crl_ocsp/crl_ocsp_service.py
86 86
        for certificate in self.certificate_repository.get_all_issued_by(ca_id):
87 87
            # extract the complete subject information and not_after date field
88 88
            subject, _, not_after = self.cryptography_service.parse_cert_pem(certificate.pem_data)
89
            if len(certificate.revocation_reason) > 0:
89
            if certificate.revocation_reason is not None and len(certificate.revocation_reason) > 0:
90 90
                line = create_index_file_revoked_line(certificate,
91 91
                                                      subject,
92 92
                                                      # parse revocation date from unix timestamp to struct_time

Také k dispozici: Unified diff