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:
Hossein Shafagh 2019-02-25 19:05:54 -08:00 committed by Jose Plana
parent 406753fcde
commit 09796cf7c9

View File

@ -199,6 +199,8 @@ def is_selfsigned(cert):
return True
except InvalidSignature:
return False
except UnsupportedAlgorithm as e:
raise Exception(e)
def is_weekend(date):