3 open(SSHFP, "-|","sshfp", "-k", "/etc/ssh/ssh_known_hosts") || die $!;
4 open(SSHFP_JS, ">", "/var/lib/dns/include/sshfp.js") || die $!;
6 print SSHFP_JS qq|var SSHFP_RECORDS = [\n|;
8 while (my $line = <SSHFP>)
10 if ($line =~ /^(\S+) IN SSHFP (\d+) (\d+) ([0-9A-F]+)$/)
17 print SSHFP_JS qq| SSHFP("${host}", ${algorithm}, ${type}, "${value}");\n|;
25 print SSHFP_JS qq|];\n|;