summaryrefslogtreecommitdiff
path: root/src/monkeysphere-host
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-01 13:08:46 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-01 13:23:30 -0500
commit0ae461de6b7bf10d3b085dfd9a5d6d29ffd29116 (patch)
tree9c870e437f06207013d9a6ec0d7b554c35e58612 /src/monkeysphere-host
parent89e447e2001c0406fab6d2e6ca300a19d492435b (diff)
some general fixes:
- fix some references to old function names - move fingerprint_server_key to be fingerprint_host_key - update diagnostic scripts
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-xsrc/monkeysphere-host10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host
index 3f4a434..f172209 100755
--- a/src/monkeysphere-host
+++ b/src/monkeysphere-host
@@ -52,7 +52,7 @@ subcommands:
revoke-hostname (n-) NAME[:PORT] revoke hostname user ID
add-revoker (o) FINGERPRINT add a revoker to the host key
revoke-key (r) revoke host key
- publish-key (p) publish server host key to keyserver
+ publish-key (p) publish host key to keyserver
expert <expert-subcommand> run expert command
expert help expert command help
@@ -91,7 +91,7 @@ gpg_host() {
}
# output just key fingerprint
-fingerprint_server_key() {
+fingerprint_host_key() {
# set the pipefail option so functions fails if can't read sec key
set -o pipefail
@@ -102,8 +102,8 @@ fingerprint_server_key() {
# function to check for host secret key
check_host_keyring() {
- fingerprint_server_key >/dev/null \
- || failure "You don't appear to have a Monkeysphere host key on this server. Please run 'monkeysphere-server gen-key' first."
+ fingerprint_host_key >/dev/null \
+ || failure "You don't appear to have a Monkeysphere host key on this server. Please run 'monkeysphere-host import-key' first."
}
# show info about the host key
@@ -113,7 +113,7 @@ show_key() {
# FIXME: you shouldn't have to be root to see the host key fingerprint
check_host_keyring
- fingerprintPGP=$(fingerprint_server_key)
+ fingerprintPGP=$(fingerprint_host_key)
gpg_host "--fingerprint --list-key --list-options show-unusable-uids $fingerprintPGP" 2>/dev/null
echo "OpenPGP fingerprint: $fingerprintPGP"