aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/sql.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-11-16 22:51:58 +0000
committerRob Austein <sra@hactrn.net>2007-11-16 22:51:58 +0000
commitcb62b5e4ab4959efaab051871f5b26cb3e998103 (patch)
tree91d93a2a2c6bea4af95dea1bad914862e0d86998 /scripts/rpki/sql.py
parent2da21b628101e24a95033dfa809e9b0fac77b8ef (diff)
repository.https_ta SQL handling was missing
svn path=/scripts/rpki/left_right.py; revision=1307
Diffstat (limited to 'scripts/rpki/sql.py')
-rw-r--r--scripts/rpki/sql.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/rpki/sql.py b/scripts/rpki/sql.py
index ae4a5ced..1b60a926 100644
--- a/scripts/rpki/sql.py
+++ b/scripts/rpki/sql.py
@@ -229,9 +229,6 @@ class ca_obj(sql_persistant):
already knew about, so we need to check for an updated
certificate, changes in resource coverage, revocation and reissue
with the same key, etc.
-
- How and where do we decide when to request a new cert because the
- old one is going to expire soon?
"""
sia_uri = self.construct_sia_uri(gctx, parent, rc)
@@ -273,7 +270,10 @@ class ca_obj(sql_persistant):
self.sql_store(gctx)
self.sia_uri = self.construct_sia_uri(gctx, parent, rc)
ca_detail = ca_detail_obj.create(gctx, self)
+
+ # This will need a callback when we go event-driven
issue_response = rpki.up_down.issue_pdu.query(gctx, parent, self, ca_detail)
+
ca_detail.latest_ca_cert = issue_response.payload.classes[0].certs[0].cert
ca_detail.ca_cert_uri = issue_response.payload.classes[0].certs[0].cert_url.rsync()
ca_detail.generate_manifest_cert(self)
@@ -363,7 +363,9 @@ class ca_detail_obj(sql_persistant):
frob children of this ca_detail.
"""
+ # This will need a callback when we go event-driven
issue_response = rpki.up_down.issue_pdu.query(gctx, parent, ca, self)
+
self.latest_ca_cert = issue_response.classes[0].certs[0].cert
new_resources = self.latest_ca_cert.get_3779resources()