3 # Monkeysphere host show-key subcommand
5 # The monkeysphere scripts are written by:
6 # Jameson Rollins <jrollins@fifthhorseman.net>
7 # Jamie McClelland <jm@mayfirst.org>
8 # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10 # They are Copyright 2008, and are all released under the GPL, version 3
17 # FIXME: you shouldn't have to be root to see the host key fingerprint
20 fingerprintPGP=$(fingerprint_server_key)
21 gpg_authentication "--fingerprint --list-key --list-options show-unusable-uids $fingerprintPGP" 2>/dev/null
22 echo "OpenPGP fingerprint: $fingerprintPGP"
24 log info "You must be root to see host OpenPGP fingerprint."
28 if [ -f "${SYSDATADIR}/ssh_host_rsa_key.pub" ] ; then
29 fingerprintSSH=$(ssh-keygen -l -f "${SYSDATADIR}/ssh_host_rsa_key.pub" | \
30 awk '{ print $1, $2, $4 }')
31 echo "ssh fingerprint: $fingerprintSSH"
33 log info "SSH host key not found."