2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-21 22:13:40 +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:
Hubert Kario 2016-07-20 20:21:28 +02:00
parent 5d930c2d32
commit e9808a1bcb

View File

@ -61,7 +61,8 @@ def get_path_for_hash(cert_hash):
if not os.path.exists(f_name):
f_name = ca_certs_path + '/' + cert_hash + '.pem'
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 f_name