mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-16 11:53:43 +01:00
report errors in cert file searching
since the certificates are separate from results file, they can get missing (or an incorrect set can be used) provide a clear message about what file is missing
This commit is contained in:
parent
5d930c2d32
commit
e9808a1bcb
@ -61,7 +61,8 @@ def get_path_for_hash(cert_hash):
|
|||||||
if not os.path.exists(f_name):
|
if not os.path.exists(f_name):
|
||||||
f_name = ca_certs_path + '/' + cert_hash + '.pem'
|
f_name = ca_certs_path + '/' + cert_hash + '.pem'
|
||||||
if not os.path.exists(f_name):
|
if not os.path.exists(f_name):
|
||||||
#print("File with hash " + c_hash + " is missing!")
|
sys.stderr.write("File with hash {0} ({1}) is missing!\n".format(
|
||||||
|
cert_hash, f_name))
|
||||||
return None
|
return None
|
||||||
return f_name
|
return f_name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user