Try to fix monkeysphere-host and tests/basic for revoke-key test
[monkeysphere.git] / tests / basic
index 15afa77fe1dd4bf7817395f61930677e0b7e6e1a..d9b7f445e51b227a3dddafbfa08811eda15526be 100755 (executable)
@@ -567,7 +567,10 @@ echo "##################################################"
 echo "### revoking ssh host key..."
 # generate the revocation certificate and feed it directly to the test
 # user's keyring (we're not publishing to the keyservers)
-monkeysphere-host revoke-key | gpg --import
+keyID=$(monkeysphere-host s 'https://testhost' | grep 'OpenPGP fingerprint:' | awk '{ print $3 }')
+monkeysphere-host revoke-key "$keyID" >"$TEMPDIR"/revcert
+cat "$TEMPDIR"/revcert
+<"$TEMPDIR"/revcert gpg --import
 echo
 echo "##################################################"
 echo "### ssh connection test for failure..."