summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/monkeysphere5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/monkeysphere b/src/monkeysphere
index 4a611c8..8ddfe7f 100755
--- a/src/monkeysphere
+++ b/src/monkeysphere
@@ -101,6 +101,11 @@ gen_subkey(){
else
keyID="$1"
fi
+ if [ -z "$keyID" ] ; then
+ failure "You have no secret key available. You should create an OpenPGP
+key before joining the monkeysphere. You can do this with:
+ gpg --gen-key"
+ fi
# get key output, and fail if not found
gpgOut=$(gpg --quiet --fixed-list-mode --list-secret-keys --with-colons \