make host show_key use just the pgp pub key file to get the ssh fingerprint, as it...
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 17 Feb 2009 04:57:55 +0000 (23:57 -0500)
committerJameson Graef Rollins <jrollins@finestructure.net>
Tue, 17 Feb 2009 04:57:55 +0000 (23:57 -0500)
src/monkeysphere-host

index bd956e09cd1f87f65a3a0704736d8bb518f6d156..ff28486a1b8f7ec36342a25508935c77948e0fb1 100755 (executable)
@@ -175,8 +175,7 @@ show_key() {
 
     echo -n "ssh fingerprint: "
     ssh-keygen -l -f /dev/stdin \
-       <<<$( gpg_host --export "$HOST_FINGERPRINT" 2>/dev/null \
-       | openpgp2ssh "$HOST_FINGERPRINT" 2>/dev/null) \
+       <<<$(openpgp2ssh <"$HOST_KEY_FILE" 2>/dev/null) \
        | awk '{ print $1, $2, $4 }'
 
     # FIXME: other relevant key parameters?