Some minor mistakes in SSHFP call

Removed extra dot, used '-f <filename>' to specify key filename
This commit is contained in:
niten 2022-02-02 15:19:11 -06:00
parent 7b29ab82b1
commit c946a155b7
1 changed files with 2 additions and 2 deletions

View File

@ -220,9 +220,9 @@ end
def host_sshfp(keys)
keys.flat_map { |keyfile|
`ssh-keygen -r hostname #{keyfile}`.split("\n")
`ssh-keygen -r hostname -f #{keyfile}`.split("\n")
}.map { |fp|
fp..match(/[0-9] [0-9] [a-fA-F0-9]{32,64}$/)[0]
fp.match(/[0-9] [0-9] [a-fA-F0-9]{32,64}$/)[0]
}.compact
end