the check_cert_signature() method was attempting to compare RSA and ECC signatures.
If a ec public-key certificate is signed with an RSA key, then it can't be a self-signed certificate, in which case we just raise InvalidSignature.
This commit is contained in:
parent
406753fcde
commit
09796cf7c9
|
@ -199,6 +199,8 @@ def is_selfsigned(cert):
|
||||||
return True
|
return True
|
||||||
except InvalidSignature:
|
except InvalidSignature:
|
||||||
return False
|
return False
|
||||||
|
except UnsupportedAlgorithm as e:
|
||||||
|
raise Exception(e)
|
||||||
|
|
||||||
|
|
||||||
def is_weekend(date):
|
def is_weekend(date):
|
||||||
|
|
Loading…
Reference in New Issue