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:
Stanislav Laznicka
2017-01-12 11:09:46 +01:00
committed by Martin Basti
parent 566c86a782
commit 721105c53d
7 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -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)