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:
parent
f68f9f4693
commit
33271451d7
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user