make host show_key use just the pgp pub key file to get the ssh fingerprint, as it...
[monkeysphere.git] / src / monkeysphere-host
index 2e69d4151c96f5aa2963aed9c9e8300e0d518fbb..ff28486a1b8f7ec36342a25508935c77948e0fb1 100755 (executable)
@@ -175,8 +175,7 @@ show_key() {
 
     echo -n "ssh fingerprint: "
     ssh-keygen -l -f /dev/stdin \
-       <<<$( gpg_host --export FEE16FA3 2>/dev/null \
-       | openpgp2ssh 8445B5203A8443B4B04F637DD4DE66B2FEE16FA3 2>/dev/null) \
+       <<<$(openpgp2ssh <"$HOST_KEY_FILE" 2>/dev/null) \
        | awk '{ print $1, $2, $4 }'
 
     # FIXME: other relevant key parameters?