aboutsummaryrefslogtreecommitdiff
path: root/scripts/rootd.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rootd.py')
-rwxr-xr-xscripts/rootd.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/rootd.py b/scripts/rootd.py
index d7193b00..e6e91cbb 100755
--- a/scripts/rootd.py
+++ b/scripts/rootd.py
@@ -29,13 +29,8 @@ import rpki.resource_set, rpki.up_down, rpki.left_right, rpki.x509
import rpki.https, rpki.config, rpki.cms, rpki.exceptions, rpki.relaxng
import rpki.sundial, rpki.log
-rootd_name = "wombat"
-rootd_base = "rsync://" + rootd_name + ".invalid/"
-rootd_cert = rootd_base + "rootd.cer"
-
rpki_subject_lifetime = rpki.sundial.timedelta(days = 30)
-
def get_subject_cert():
try:
x = rpki.x509.X509(Auto_file = rpki_subject_filename)
@@ -185,6 +180,10 @@ rpki_subject_filename = cfg.get("rpki-subject-filename")
rpki_pkcs10_filename = cfg.get("rpki-pkcs10-filename", "")
+rootd_name = cfg.get("rootd_name", "wombat")
+rootd_base = cfg.get("rootd_base", "rsync://" + rootd_name + ".invalid/")
+rootd_cert = cfg.get("rootd_cert", rootd_base + "rootd.cer")
+
rpki.https.server(privateKey = https_key,
certChain = https_certs,
host = https_server_host,