mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Generate sha256 ssh pubkey fingerprints for hosts
Replace md5 with sha256 for host ssh pubkey fingerprints https://fedorahosted.org/freeipa/ticket/5695 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
566c86a782
commit
721105c53d
+1
-1
@@ -301,7 +301,7 @@ def convert_sshpubkey_post(entry_attrs):
|
||||
except (ValueError, UnicodeDecodeError):
|
||||
continue
|
||||
|
||||
fp = pubkey.fingerprint_hex_md5()
|
||||
fp = pubkey.fingerprint_hex_sha256()
|
||||
comment = pubkey.comment()
|
||||
if comment:
|
||||
fp = u'%s %s' % (fp, comment)
|
||||
|
||||
Reference in New Issue
Block a user