summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-01-15 20:17:15 -0500
committerJameson Rollins <jrollins@finestructure.net>2010-01-15 20:24:40 -0500
commit0f6353059da451d3ed182cfb18e8eafea1348a85 (patch)
tree863f3a51f220eb81b89c0b898924e499be0bfaca /tests/basic
parent17315937bc0af145ef7dfb749096faad49f208aa (diff)
Try to fix monkeysphere-host and tests/basic for revoke-key test
Unfortunately there's still a problem that I can't quite figure out. gpg is for some reason failing to import that revocation certificate. Could it be because gpg can't accept ascii armored certificates as input? I'm at a loss.
Diffstat (limited to 'tests/basic')
-rwxr-xr-xtests/basic5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/basic b/tests/basic
index 15afa77..d9b7f44 100755
--- a/tests/basic
+++ b/tests/basic
@@ -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..."