From 71fd6d6b4e3dc9df0ba91bc11219c0fd68629154 Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Thu, 11 Aug 2016 11:27:22 +0200 Subject: make work with the cli-test user 'ct' too --- bin/cryptech_upload | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/cryptech_upload') diff --git a/bin/cryptech_upload b/bin/cryptech_upload index 680a0ac..3222e2e 100755 --- a/bin/cryptech_upload +++ b/bin/cryptech_upload @@ -77,7 +77,7 @@ def parse_args(): ) parser.add_argument("--username", - choices = ("so", "wheel"), + choices = ("so", "wheel", "ct"), default = "so", help = "Username to use when logging into the HSM", ) @@ -134,6 +134,8 @@ def _execute(dst, cmd): pin = None if args.username == 'wheel': pin = wheel_pin + if args.username == 'ct': + pin = 'ct' _write(dst, "\r") prompt = _read(dst) if prompt.endswith("Username: "): -- cgit v1.2.3