diff options
author | Jerin J Titus <72017981+jerinjtitus@users.noreply.github.com> | 2021-05-24 22:13:30 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 17:43:30 +0100 |
commit | 057ce7b75406dc97be8ff2c890c47fd9357b0773 (patch) | |
tree | 0f009796547429e7adff2ee0a09baf9b67083070 /scripts-dev | |
parent | Fix --no-daemonize for synctl with workers (#9995) (diff) | |
download | synapse-057ce7b75406dc97be8ff2c890c47fd9357b0773.tar.xz |
Remove tls_fingerprints option (#9280)
Signed-off-by: Jerin J Titus <72017981+jerinjtitus@users.noreply.github.com>
Diffstat (limited to 'scripts-dev')
-rw-r--r-- | scripts-dev/convert_server_keys.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/scripts-dev/convert_server_keys.py b/scripts-dev/convert_server_keys.py index 961dc59f11..d4314a054c 100644 --- a/scripts-dev/convert_server_keys.py +++ b/scripts-dev/convert_server_keys.py @@ -1,4 +1,3 @@ -import hashlib import json import sys import time @@ -54,15 +53,9 @@ def convert_v1_to_v2(server_name, valid_until, keys, certificate): "server_name": server_name, "verify_keys": {key_id: {"key": key} for key_id, key in keys.items()}, "valid_until_ts": valid_until, - "tls_fingerprints": [fingerprint(certificate)], } -def fingerprint(certificate): - finger = hashlib.sha256(certificate) - return {"sha256": encode_base64(finger.digest())} - - def rows_v2(server, json): valid_until = json["valid_until_ts"] key_json = encode_canonical_json(json) |