mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Properly handle non-existent cert files
https://fedorahosted.org/freeipa/ticket/3785
This commit is contained in:
committed by
Martin Kosek
parent
240b12169b
commit
f637d05a18
@@ -721,7 +721,7 @@ def check_pkcs12(pkcs12_info, ca_file, hostname):
|
||||
ca_cert_name = 'The Root CA'
|
||||
try:
|
||||
nssdb.import_pem_cert(ca_cert_name, "CT,C,C", ca_file)
|
||||
except ValueError, e:
|
||||
except (ValueError, RuntimeError) as e:
|
||||
raise ScriptError(str(e))
|
||||
|
||||
# Import everything in the PKCS#12
|
||||
|
||||
Reference in New Issue
Block a user