Fix compatibility with cryptography 2.6
[1] https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#26---2019-02-27
This commit is contained in:
parent
7b7cf5bd11
commit
9992e23e68
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ class CertBundle(BaseModel):
|
|||
'KeyAlgorithm': key_algo,
|
||||
'NotAfter': datetime_to_epoch(self._cert.not_valid_after),
|
||||
'NotBefore': datetime_to_epoch(self._cert.not_valid_before),
|
||||
'Serial': self._cert.serial,
|
||||
'Serial': self._cert.serial_number,
|
||||
'SignatureAlgorithm': self._cert.signature_algorithm_oid._name.upper().replace('ENCRYPTION', ''),
|
||||
'Status': self.status, # One of PENDING_VALIDATION, ISSUED, INACTIVE, EXPIRED, VALIDATION_TIMED_OUT, REVOKED, FAILED.
|
||||
'Subject': 'CN={0}'.format(self.common_name),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue