2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-28 11:57:37 +00:00

Support SHA384 if used as fingerprint

This commit is contained in:
Jarrod Johnson 2024-04-09 13:17:19 -04:00
parent f68f9f4693
commit 33271451d7

View File

@ -168,7 +168,7 @@ def cert_matches(fingerprint, certificate):
return algo(certificate).digest() == fingerprint
algo, _, fp = fingerprint.partition('$')
newfp = None
if algo in ('sha512', 'sha256'):
if algo in ('sha512', 'sha256', 'sha384'):
newfp = get_fingerprint(certificate, algo)
return newfp and fingerprint == newfp