diff options
author | Magnus Ahltorp <map@kth.se> | 2015-08-19 09:55:02 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-08-19 16:48:15 +0200 |
commit | 0d7c8181f07e1c34ef3a9a8740c8ce2d7b982f74 (patch) | |
tree | f66fa48fab1200bde7500c56ac7dc994154f50a3 /tools/fetchallcerts.py | |
parent | aa703d32d55717b4934c91cf187f0ed165196fd0 (diff) |
Script for converting database to new format
Diffstat (limited to 'tools/fetchallcerts.py')
-rwxr-xr-x | tools/fetchallcerts.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/fetchallcerts.py b/tools/fetchallcerts.py index 943759e..66fde74 100755 --- a/tools/fetchallcerts.py +++ b/tools/fetchallcerts.py @@ -22,6 +22,7 @@ parser = argparse.ArgumentParser(description='') parser.add_argument('baseurl', help="Base URL for CT server") parser.add_argument('--store', default=None, metavar="dir", help='Store certificates in directory dir') parser.add_argument('--write-sth', action='store_true', help='Write STH') +parser.add_argument('--no-check-signature', action='store_true', help='Don\'t check signature') parser.add_argument('--publickey', default=None, metavar="file", help='Public key for the CT log') parser.add_argument('--cafile', default=None, metavar="file", help='File containing the CA cert') args = parser.parse_args() @@ -46,7 +47,8 @@ def print_layer(layer): logpublickey = get_public_key_from_file(args.publickey) if args.publickey else None sth = get_sth(args.baseurl) -check_sth_signature(args.baseurl, sth, publickey=logpublickey) +if not args.no_check_signature: + check_sth_signature(args.baseurl, sth, publickey=logpublickey) tree_size = sth["tree_size"] root_hash = base64.decodestring(sth["sha256_root_hash"]) |