diff options
author | Magnus Ahltorp <map@kth.se> | 2017-01-27 16:11:11 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2017-01-27 16:11:11 +0100 |
commit | 9df774599dac2eed73dd47b4086f1f764f756437 (patch) | |
tree | cecffa1c07e6f6ef449c7af05543afa0cb206f11 /tools/merge_sth.py | |
parent | 50667bc5c4896557415ab28269d2aea3ac534bf4 (diff) |
Verify config file signature
Read log key from config file in more places.
Check STH signature in storagegc.py
Diffstat (limited to 'tools/merge_sth.py')
-rwxr-xr-x | tools/merge_sth.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/merge_sth.py b/tools/merge_sth.py index 6b1bb60..2bc19dd 100755 --- a/tools/merge_sth.py +++ b/tools/merge_sth.py @@ -12,6 +12,7 @@ import json import urllib2 import time import requests +import base64 from base64 import b64encode from mergetools import parse_args, get_nfetched, hexencode, hexdecode, \ get_logorder, get_sth @@ -31,7 +32,7 @@ def merge_sth(args, config, localconfig): sthfile = mergedb + "/sth" logorderfile = mergedb + "/logorder" currentsizefile = mergedb + "/fetched" - logpublickey = get_public_key_from_file(paths["logpublickey"]) + logpublickey = base64.decodestring(config["logpublickey"]) backupquorum = config.get("backup-quorum-size", 0) assert backupquorum <= len(mergenodes) - 1 create_ssl_context(cafile=paths["https_cacertfile"]) |