diff options
author | Rob Austein <sra@hactrn.net> | 2008-05-28 06:08:03 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-05-28 06:08:03 +0000 |
commit | c96ca783217ea75fb825f777a5612ccfc0f567b6 (patch) | |
tree | 29ff73f99832b28d8c57d02767047b9305b4f4ad | |
parent | b65cbeb7d8318ccdcf43d9fbc19beb52951cec5f (diff) |
Checkpoint
svn path=/rpkid/pubd.py; revision=1827
-rwxr-xr-x | rpkid/pubd.py | 15 | ||||
-rw-r--r-- | rpkid/testbed.py | 5 |
2 files changed, 12 insertions, 8 deletions
diff --git a/rpkid/pubd.py b/rpkid/pubd.py index 49b5a33c..3f35b087 100755 --- a/rpkid/pubd.py +++ b/rpkid/pubd.py @@ -111,10 +111,11 @@ cfg = rpki.config.parser(cfg_file, "pubd") pctx = pubd_context(cfg) -rpki.https.server(host = pctx.https_server_host, - port = pctx.https_server_port, - server_key = pctx.pubd_key, - server_cert = pctx.pubd_cert, - dynamic_x509store = pctx.build_x509store, - handlers = (("/control", pctx.control_handler), - ("/client/", pctx.client_handler))) +rpki.https.server( + dynamic_https_trust_anchor = pctx.build_https_ta_cache, + host = pctx.https_server_host, + port = pctx.https_server_port, + server_key = pctx.pubd_key, + server_cert = pctx.pubd_cert, + handlers = (("/control", pctx.control_handler), + ("/client/", pctx.client_handler))) diff --git a/rpkid/testbed.py b/rpkid/testbed.py index 961846e1..24f8615a 100644 --- a/rpkid/testbed.py +++ b/rpkid/testbed.py @@ -170,6 +170,9 @@ def main(): rpki.log.info("Starting rootd") rootd_process = subprocess.Popen((prog_python, prog_rootd, "-c", rootd_name + ".conf")) + rpki.log.info("Starting pubd") + pubd_process = subprocess.Popen((prog_python, prog_pubd, "-c", pubd_name + ".conf")) + rpki.log.info("Starting rsyncd") rsyncd_process = subprocess.Popen((prog_rsyncd, "--daemon", "--no-detach", "--config", rsyncd_name + ".conf")) @@ -222,7 +225,7 @@ def main(): rpki.log.info("Shutting down") for a in db.engines: a.kill_daemons() - for p,n in ((rootd_process, "rootd"), (rsyncd_process, "rsyncd")): + for p,n in ((rootd_process, "rootd"), (pubd_process, "pubd"), (rsyncd_process, "rsyncd")): if p is not None: rpki.log.info("Killing %s" % n) os.kill(p.pid, signal.SIGTERM) |