diff options
author | Rob Austein <sra@hactrn.net> | 2010-09-03 23:09:07 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-09-03 23:09:07 +0000 |
commit | 426bccab012d032e1b675b2ac3faacd2dda5571d (patch) | |
tree | aa04294d615c38c1f612d38a20c88d5114d612bc /rpkid/irdbd.py | |
parent | b5dd5fe7f0f336bb54cf454f3222c8f581f7136c (diff) |
Add new "Auto_update" flavor of DER objects: this is like Auto_file,
but saves the filename from which it was loaded, and attempts to
reload itself automatically if the file's st_mtime changes.
svn path=/rpkid/irdbd.py; revision=3439
Diffstat (limited to 'rpkid/irdbd.py')
-rw-r--r-- | rpkid/irdbd.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rpkid/irdbd.py b/rpkid/irdbd.py index fa694fd2..f7724d89 100644 --- a/rpkid/irdbd.py +++ b/rpkid/irdbd.py @@ -198,10 +198,10 @@ db = MySQLdb.connect(user = cfg.get("sql-username"), cur = db.cursor() db.autocommit(True) -bpki_ta = rpki.x509.X509(Auto_file = cfg.get("bpki-ta")) -rpkid_cert = rpki.x509.X509(Auto_file = cfg.get("rpkid-cert")) -irdbd_cert = rpki.x509.X509(Auto_file = cfg.get("irdbd-cert")) -irdbd_key = rpki.x509.RSA( Auto_file = cfg.get("irdbd-key")) +bpki_ta = rpki.x509.X509(Auto_update = cfg.get("bpki-ta")) +rpkid_cert = rpki.x509.X509(Auto_update = cfg.get("rpkid-cert")) +irdbd_cert = rpki.x509.X509(Auto_update = cfg.get("irdbd-cert")) +irdbd_key = rpki.x509.RSA( Auto_update = cfg.get("irdbd-key")) u = urlparse.urlparse(cfg.get("https-url")) |