From e9a6abce5f7e96ae6225f036f1f865172d3ef567 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 9 May 2016 17:44:50 +0000 Subject: 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 --- potpourri/ca-unpickle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'potpourri') 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(), -- cgit v1.2.3