From 593803edd2efe4b45f201b8d423b5f4af7d4d6d7 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 30 Jun 2016 19:05:12 +0200 Subject: [feat] add support for private keys into bitmask cli --- src/leap/bitmask/cli/bitmask_cli.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/leap/bitmask/cli/bitmask_cli.py') diff --git a/src/leap/bitmask/cli/bitmask_cli.py b/src/leap/bitmask/cli/bitmask_cli.py index 60dc5176..144dcbb8 100755 --- a/src/leap/bitmask/cli/bitmask_cli.py +++ b/src/leap/bitmask/cli/bitmask_cli.py @@ -136,6 +136,8 @@ GENERAL COMMANDS: parser = argparse.ArgumentParser( description='Bitmask Keymanager management service', prog='bitmask_cli keys') + parser.add_argument('--private', action='store_true', + help='Use private keys (by default uses public)') parser.add_argument('--list', action='store_true', help='List all known keys') parser.add_argument('--export', action='store_true', @@ -366,6 +368,11 @@ def send_command(cli): if subargs.address: data.append(subargs.address) + if subargs.private: + data += ['private'] + else: + data += ['public'] + s = get_zmq_connection() d = s.sendMsg(*data, timeout=60) -- cgit v1.2.3