Fixed license error
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user