Fixed license error

This commit is contained in:
2026-02-23 22:37:13 +01:00
parent 8a21c2e4f0
commit 2f467a4128
6 changed files with 60 additions and 46 deletions
+4 -4
View File
@@ -25,7 +25,7 @@ __all__ = [
def load_cert_file(path: str) -> x509.Certificate:
'''
Loads a certificate from a file
:param path: File path
:type path: str
:return: The certificate
@@ -58,7 +58,7 @@ class Identity:
@property
def not_valid_after(self):
return self.cert.not_valid_after_utc
@property
def signature_algorithm(self):
return self.cert.signature_hash_algorithm
@@ -81,8 +81,8 @@ class Verifier:
)
except:
return False
if (identity.issuer != self.trusted_ca.subject) and verify_issuer:
return False
return True