aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/up_down.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-09-25 21:27:24 +0000
committerRob Austein <sra@hactrn.net>2007-09-25 21:27:24 +0000
commita683f101edd0512fc2c34433ad23d6986e66bd4a (patch)
treee3bdc08f9969125574d780274b22801e7ee6044c /scripts/rpki/up_down.py
parent5c022e023e4e300ffb14caba250f584b67a4b37b (diff)
Checkpoint
svn path=/scripts/rpki/up_down.py; revision=1033
Diffstat (limited to 'scripts/rpki/up_down.py')
-rw-r--r--scripts/rpki/up_down.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/rpki/up_down.py b/scripts/rpki/up_down.py
index 2b424d9b..6e3ff660 100644
--- a/scripts/rpki/up_down.py
+++ b/scripts/rpki/up_down.py
@@ -227,6 +227,34 @@ class issue_pdu(base_elt):
return [elt]
def serve_pdu(self, gctx, q_msg, r_msg, child):
+
+ # Tasks:
+ #
+ # 1) self.class_naem is ca_id, so pull the corresponding ca
+ # object, throw an exception if we can't find it.
+ #
+ # 2) Check that PKCS#10 is legal according to the profile (has all
+ # required fields, doesn't have any forbidden fields, fields
+ # that it has don't conflict with anything we already know).
+ #
+ # 3) Find any certs already issued to this child for these
+ # resources (approximately the same algorithm used for
+ # list_response). Check:
+ #
+ # 3a) that resources match exactly
+ #
+ # 3b) that public key matches exactly
+ #
+ # 3c) that any relevant extensions in the pkcs10 match exactly
+ #
+ # 3d) that the expiration time of the cert is far enough into the
+ # future?
+ #
+ # If existing cert passes all these checks, just return it.
+ #
+ # 4) If we get this far we need to generate the new cert, then
+ # return it.
+
raise NotImplementedError
class issue_response_pdu(class_response_syntax):