diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2016-08-11 11:27:22 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2016-08-11 11:27:22 +0200 |
commit | 71fd6d6b4e3dc9df0ba91bc11219c0fd68629154 (patch) | |
tree | 5caec913126748fea849e2e11507f077fb875102 /bin | |
parent | 2a9a41b399cfd76943cc221a78f80313157b7331 (diff) |
make work with the cli-test user 'ct' too
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cryptech_upload | 4 |
1 files changed, 3 insertions, 1 deletions
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: "): |