fix #4720
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user