fix reference to HOST_FINGERPRINT in show-key, and fix some references
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 17 Feb 2009 02:39:17 +0000 (21:39 -0500)
committerJameson Graef Rollins <jrollins@finestructure.net>
Tue, 17 Feb 2009 02:40:52 +0000 (21:40 -0500)
to "expert" in test.

src/monkeysphere-host
tests/basic

index 2e69d4151c96f5aa2963aed9c9e8300e0d518fbb..bd956e09cd1f87f65a3a0704736d8bb518f6d156 100755 (executable)
@@ -175,8 +175,8 @@ show_key() {
 
     echo -n "ssh fingerprint: "
     ssh-keygen -l -f /dev/stdin \
-       <<<$( gpg_host --export FEE16FA3 2>/dev/null \
-       | openpgp2ssh 8445B5203A8443B4B04F637DD4DE66B2FEE16FA3 2>/dev/null) \
+       <<<$( gpg_host --export "$HOST_FINGERPRINT" 2>/dev/null \
+       | openpgp2ssh "$HOST_FINGERPRINT" 2>/dev/null) \
        | awk '{ print $1, $2, $4 }'
 
     # FIXME: other relevant key parameters?
index 9844454543b53d42f525e150ec5587b123c421af..4c19a85d834057c1cd5395c389b97f89a87ec82b 100755 (executable)
@@ -166,9 +166,9 @@ EOF
 
 # import host key
 echo "##################################################"
-echo "### testing host key importing..."
+echo "### import host key..."
 ssh-keygen -b 1024 -t rsa -N '' -f "$TEMPDIR"/ssh_host_rsa_key
-monkeysphere-host expert import-key testhost < "$TEMPDIR"/ssh_host_rsa_key
+monkeysphere-host import-key testhost < "$TEMPDIR"/ssh_host_rsa_key
 
 # change host key expiration
 echo "##################################################"