Add ignore_timestamps option. (#317)

This commit is contained in:
Felix Fontein
2021-10-30 16:34:27 +02:00
committed by GitHub
parent eb8dabce84
commit 4ab2ed8b77
5 changed files with 36 additions and 2 deletions

View File

@@ -134,6 +134,10 @@ class SelfSignedCertificateBackendCryptography(CertificateBackend):
"""Return bytes for self.cert."""
return self.cert.public_bytes(Encoding.PEM)
def needs_regeneration(self):
return super(SelfSignedCertificateBackendCryptography, self).needs_regeneration(
not_before=self.notBefore, not_after=self.notAfter)
def dump(self, include_certificate):
result = super(SelfSignedCertificateBackendCryptography, self).dump(include_certificate)