mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add support for RFC 6594 SSHFP DNS records.
https://fedorahosted.org/freeipa/ticket/2642
This commit is contained in:
committed by
Rob Crittenden
parent
c1735e1c80
commit
86dde3a38e
@@ -1325,6 +1325,9 @@ def update_ssh_keys(server, hostname, ssh_dir, create_sshfp):
|
||||
sshfp = pubkey.fingerprint_dns_sha1()
|
||||
if sshfp is not None:
|
||||
update_txt += 'update add %s. %s IN SSHFP %s\n' % (hostname, ttl, sshfp)
|
||||
sshfp = pubkey.fingerprint_dns_sha256()
|
||||
if sshfp is not None:
|
||||
update_txt += 'update add %s. %s IN SSHFP %s\n' % (hostname, ttl, sshfp)
|
||||
update_txt += 'send\n'
|
||||
|
||||
if not do_nsupdate(update_txt):
|
||||
|
||||
Reference in New Issue
Block a user