summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorStanislav Laznicka <slaznick@redhat.com>2016-12-12 16:59:48 +0100
committerMartin Basti <mbasti@redhat.com>2017-01-12 11:09:46 +0100
commit721105c53de6fbc0abc7799ec7f48920e02089bd (patch)
tree6d1f615ea5d5bc1425a6c944427941d6af5179c0 /ipalib
parent566c86a782bfd7d50938866e9f89faf56cea773f (diff)
downloadfreeipa-721105c53de6fbc0abc7799ec7f48920e02089bd.tar.gz
freeipa-721105c53de6fbc0abc7799ec7f48920e02089bd.tar.xz
freeipa-721105c53de6fbc0abc7799ec7f48920e02089bd.zip
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>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/util.py b/ipalib/util.py
index 1c00cd748..81c0e9e5e 100644
--- a/ipalib/util.py
+++ b/ipalib/util.py
@@ -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)