mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Catch the condition where dogtag is already configured (no preop.pin)
This causes the installation to blow up badly otherwise. To remove an existing instance run: # pkiremove -pki_instance_root=/var/lib -pki_instance_name=pki-ca
This commit is contained in:
parent
af49945ae4
commit
3f5b4233cb
@ -113,6 +113,9 @@ def get_preop_pin(instance_root, instance_name):
|
||||
preop_pin=match.group(1)
|
||||
break
|
||||
|
||||
if preop_pin is None:
|
||||
raise RuntimeError("Unable to find preop.pin in %s. Is your CA already configured?" % filename)
|
||||
|
||||
return preop_pin
|
||||
|
||||
def import_pkcs12(input_file, input_passwd, cert_database,
|
||||
|
Loading…
Reference in New Issue
Block a user