Fix scripts-dev/convert_server_keys.py to have correct format

This commit is contained in:
Erik Johnston 2015-05-19 13:12:55 +01:00
parent d3e09f12d0
commit 882ac83d8d
1 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,10 @@ def convert_v1_to_v2(server_name, valid_until, keys, certificate):
return { return {
"old_verify_keys": {}, "old_verify_keys": {},
"server_name": server_name, "server_name": server_name,
"verify_keys": keys, "verify_keys": {
key_id: {"key": key}
for key_id, key in keys
},
"valid_until_ts": valid_until, "valid_until_ts": valid_until,
"tls_fingerprints": [fingerprint(certificate)], "tls_fingerprints": [fingerprint(certificate)],
} }