diff options
author | Rob Austein <sra@hactrn.net> | 2016-05-09 17:44:50 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-05-09 17:44:50 +0000 |
commit | e9a6abce5f7e96ae6225f036f1f865172d3ef567 (patch) | |
tree | 54ac0862aa30ce84daafa438c31e65bd7d047616 /potpourri | |
parent | de32572de12710e4bcec9f6969dcea91ebaf350c (diff) |
Add `--root-handle` argument to ca-unpickle to allow manual
specification of a handle for the new root entity instead of the
default of using a randomly-generated UUID as the name.
svn path=/branches/tk705/; revision=6432
Diffstat (limited to 'potpourri')
-rwxr-xr-x | potpourri/ca-unpickle.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/potpourri/ca-unpickle.py b/potpourri/ca-unpickle.py index be8f8237..f152bf00 100755 --- a/potpourri/ca-unpickle.py +++ b/potpourri/ca-unpickle.py @@ -185,6 +185,8 @@ def main(): cfg = rpki.config.argparser(doc = __doc__) cfg.argparser.add_argument("--rootd", action = "store_true", help = "enable extra processing for rootd transitions") + cfg.argparser.add_argument("--root-handle", default = str(uuid.uuid4()), + help = "override default (random UUID) handle for root") cfg.add_logging_arguments() cfg.argparser.add_argument("input_file", help = "input file") args = cfg.argparser.parse_args() @@ -256,8 +258,7 @@ class Root(object): rpki_root_mft_key = rpki.x509.RSA.generate() - # Maybe we'll figure out a prettier handle to use later - root_handle = str(uuid.uuid4()) + root_handle = args.root_handle rpki_root_last_serial = max( rpki_work_cer.getSerial(), |