diff options
author | Rob Austein <sra@hactrn.net> | 2010-02-20 01:57:05 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-02-20 01:57:05 +0000 |
commit | 20405060066591be29ea973dc4befbcd1bd152fa (patch) | |
tree | 88118659a436d4b4cc9f4247c6d7952601a25edc /myrpki.rototill/initialize.py | |
parent | 59c7754af1be85edc2680fc4fcc22e2eb21d11d9 (diff) |
Checkpoint
svn path=/myrpki.rototill/examples/myrpki.conf; revision=2987
Diffstat (limited to 'myrpki.rototill/initialize.py')
-rw-r--r-- | myrpki.rototill/initialize.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/myrpki.rototill/initialize.py b/myrpki.rototill/initialize.py index 9df16e2e..04ef4c8e 100644 --- a/myrpki.rototill/initialize.py +++ b/myrpki.rototill/initialize.py @@ -61,12 +61,12 @@ for o, a in opts: cfg = rpki.config.parser(cfg_file, "myrpki") -handle = cfg.get("handle") -want_rpkid = cfg.getboolean("want_rpkid") -want_pubd = cfg.getboolean("want_pubd") -want_rootd = cfg.getboolean("want_rootd") +handle = cfg.get("handle") +run_rpkid = cfg.getboolean("run_rpkid") +run_pubd = cfg.getboolean("run_pubd") +run_rootd = cfg.getboolean("run_rootd") -if want_rootd and (not want_pubd or not want_rpkid): +if run_rootd and (not run_pubd or not run_rpkid): raise RuntimeError, "Can't run rootd unless also running rpkid and pubd" myrpki.openssl = cfg.get("openssl", "openssl") @@ -92,14 +92,14 @@ bpki_myrpki.setup(cfg.get("bpki_myrpki_ta_dn", # "myirbe" (server-operating) BPKI, its trust anchor, and EE certs for # each program we need to run. -if want_rpkid or want_pubd or want_rootd: +if run_rpkid or run_pubd or run_rootd: bpki_myirbe = myrpki.CA(cfg_file, cfg.get("myirbe_bpki_directory")) bpki_myirbe.setup(cfg.get("bpki_myirbe_ta_dn", "/CN=%s BPKI Server Trust Anchor" % handle)) - if want_rpkid: + if run_rpkid: bpki_myirbe.ee(cfg.get("bpki_rpkid_ee_dn", "/CN=%s rpkid server certificate" % handle), "rpkid") @@ -109,18 +109,18 @@ if want_rpkid or want_pubd or want_rootd: bpki_myirbe.ee(cfg.get("bpki_irdbd_ee_dn", "/CN=%s irdbd server certificate" % handle), "irdbd") - if want_pubd: + if run_pubd: bpki_myirbe.ee(cfg.get("bpki_pubd_ee_dn", "/CN=%s pubd server certificate" % handle), "pubd") - if want_rpkid or want_pubd: + if run_rpkid or run_pubd: # Client cert for myirbe and irbe_cli bpki_myirbe.ee(cfg.get("bpki_irbe_ee_dn", "/CN=%s irbe client certificate" % handle), "irbe") - if want_rootd: + if run_rootd: bpki_myirbe.ee(cfg.get("bpki_rootd_ee_dn", "/CN=%s rootd server certificate" % handle), "rootd") @@ -134,7 +134,7 @@ myrpki.etree_write(e, handle + ".xml") # If we're running rootd, construct a fake parent to go with it. -if want_rootd: +if run_rootd: e = Element("parent", xmlns = myrpki.namespace, version = "1", handle = handle, service_uri = "https://localhost:%d/" % cfg.getint("rootd_server_port")) |