diff options
author | Rob Austein <sra@hactrn.net> | 2012-05-11 02:31:24 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-05-11 02:31:24 +0000 |
commit | f9ff6d1713750cae4062d2a7a38cab4119642936 (patch) | |
tree | 45919827ff06e481d9d76ae3f46879795f9209f4 /rpkid/rpki/irdb/zookeeper.py | |
parent | 85ef88ddb731a9980e6fd40cc125964b75b2d958 (diff) |
Add rekey, revoke, and reissue commands. Closes #249.
svn path=/trunk/; revision=4485
Diffstat (limited to 'rpkid/rpki/irdb/zookeeper.py')
-rw-r--r-- | rpkid/rpki/irdb/zookeeper.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rpkid/rpki/irdb/zookeeper.py b/rpkid/rpki/irdb/zookeeper.py index b465e556..83fd8665 100644 --- a/rpkid/rpki/irdb/zookeeper.py +++ b/rpkid/rpki/irdb/zookeeper.py @@ -952,6 +952,33 @@ class Zookeeper(object): action = "set", self_handle = self.handle, publish_world_now = "yes")) + def reissue(self): + """ + Poke rpkid to reissue everything for the current handle. + """ + + self.call_rpkid(rpki.left_right.self_elt.make_pdu( + action = "set", self_handle = self.handle, reissue = "yes")) + + def rekey(self): + """ + Poke rpkid to rekey all RPKI certificates received for the current + handle. + """ + + self.call_rpkid(rpki.left_right.self_elt.make_pdu( + action = "set", self_handle = self.handle, rekey = "yes")) + + + def revoke(self): + """ + Poke rpkid to revoke old RPKI keys for the current handle. + """ + + self.call_rpkid(rpki.left_right.self_elt.make_pdu( + action = "set", self_handle = self.handle, revoke = "yes")) + + def call_pubd(self, *pdus): """ Issue a call to pubd, return result. |