1
0
This commit is contained in:
SomberNight
2018-09-17 14:44:01 +02:00
parent aee2d8e120
commit e5e3ac0364
8 changed files with 18 additions and 103 deletions

View File

@@ -370,8 +370,7 @@ def verify_cert_chain(chain):
hashBytes = bytearray(hashlib.sha512(data).digest())
verify = pubkey.verify(sig, x509.PREFIX_RSA_SHA512 + hashBytes)
else:
raise Exception("Algorithm not supported")
util.print_error(self.error, algo.getComponentByName('algorithm'))
raise Exception("Algorithm not supported: {}".format(algo))
if not verify:
raise Exception("Certificate not Signed by Provided CA Certificate Chain")