diff options
author | Rob Austein <sra@hactrn.net> | 2014-01-15 00:38:10 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-01-15 00:38:10 +0000 |
commit | 28495e024a45b7859cf9efabb5776a55e6290794 (patch) | |
tree | 2849de0b65f469cf8708c1506ad2356f0c543a86 | |
parent | 37779a6c590405f250a8f9f7bc3c00cd3489997e (diff) |
Add show_bpki command to list BPKI dates and SKIs.
svn path=/trunk/; revision=5634
-rw-r--r-- | rpkid/rpki/rpkic.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/rpkid/rpki/rpkic.py b/rpkid/rpki/rpkic.py index ada1967c..a855d394 100644 --- a/rpkid/rpki/rpkic.py +++ b/rpkid/rpki/rpkic.py @@ -632,6 +632,40 @@ class main(Cmd): print track, child + @parsecmd(argsubparsers) + def do_show_bpki(self, args): + """ + Show this entity's BPKI objects. + """ + + print "Self: ", self.zoo.resource_ca.handle + print " notBefore:", self.zoo.resource_ca.certificate.getNotBefore() + print " notAfter: ", self.zoo.resource_ca.certificate.getNotAfter() + print " SKI: ", self.zoo.resource_ca.certificate.hSKI() + for bsc in self.zoo.resource_ca.bscs.all(): + print "BSC: ", bsc.handle + print " notBefore:", bsc.certificate.getNotBefore() + print " notAfter: ", bsc.certificate.getNotAfter() + print " SKI: ", bsc.certificate.hSKI() + for parent in self.zoo.resource_ca.parents.all(): + print "Parent: ", parent.handle + print " notBefore:", parent.certificate.getNotBefore() + print " notAfter: ", parent.certificate.getNotAfter() + print " SKI: ", parent.certificate.hSKI() + print " URL: ", parent.service_uri + for child in self.zoo.resource_ca.children.all(): + print "Child: ", child.handle + print " notBefore:", child.certificate.getNotBefore() + print " notAfter: ", child.certificate.getNotAfter() + print " SKI: ", child.certificate.hSKI() + for repository in self.zoo.resource_ca.repositories.all(): + print "Repository: ", repository.handle + print " notBefore:", repository.certificate.getNotBefore() + print " notAfter: ", repository.certificate.getNotAfter() + print " SKI: ", repository.certificate.hSKI() + print " URL: ", repository.service_uri + + @parsecmd(argsubparsers, cmdarg("asns_csv", help = "CSV file listing ASNs")) def do_load_asns(self, args): |