diff options
author | Rob Austein <sra@hactrn.net> | 2010-10-01 05:23:08 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-10-01 05:23:08 +0000 |
commit | db3d1aaa86855076016a078ce05d2d36e9dea810 (patch) | |
tree | 946a7017b47a4efa8e5072bb77aa4ace45b32c22 /rpkid | |
parent | 1973bbed741741366d6a07fbf87d2cd22e7a9061 (diff) |
Debug update_bpki
svn path=/rpkid/rpki/myrpki.py; revision=3451
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/rpki/myrpki.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rpkid/rpki/myrpki.py b/rpkid/rpki/myrpki.py index 680b77cd..4586172c 100644 --- a/rpkid/rpki/myrpki.py +++ b/rpkid/rpki/myrpki.py @@ -1064,14 +1064,17 @@ class main(rpki.cli.Cmd): bpki.run_openssl("x509", "-x509toreq", "-in", cer, "-out", req, "-signkey", key) print "Clearing BPKI certificate", cer os.unlink(cer) - - print "Rerunning initialization to regenerate certificates" - self.do_initialize(arg) + if cer == bpki.cer: + assert req == bpki.req + print "Regenerating certificate", cer + bpki.run_ca("-selfsign", "-extensions", "ca_x509_ext_ca", "-in", req, "-out", cer) print "Regenerating CRLs" for bpki in bpkis: bpki.run_ca("-gencrl", "-out", bpki.crl) + self.do_initialize(arg) + # Er, except that this isn't really the end, now we need to run # configure_resources and configure_daemons and we don't (yet) # know what arguments to pass to those. Feh. |