diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/monkeysphere-server | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/monkeysphere-server b/src/monkeysphere-server index 06c9c7f..ce5aa9c 100755 --- a/src/monkeysphere-server +++ b/src/monkeysphere-server @@ -76,6 +76,9 @@ EOF ) # add the revoker field if requested +# FIXME: the 1: below assumes that $REVOKER's key is an RSA key. why? +# FIXME: why is this marked "sensitive"? how will this signature ever +# be transmitted to the expected revoker? if [ "$REVOKER" ] ; then keyParameters="${keyParameters}"$(cat <<EOF @@ -106,7 +109,12 @@ EOF log -n "generating server key... " echo "$keyParameters" | gpg --batch --gen-key - loge "done." + log "done." + fingerprint_server_key +} + +fingerprint_server_key() { + gpg --fingerprint --list-secret-keys =ssh://$(hostname --fqdn) } ######################################################################## @@ -195,6 +203,10 @@ case $COMMAND in gen_key "$1" ;; + 'show-fingerprint'|'f') + fingerprint_server_key + ;; + 'publish-key'|'p') publish_server_key ;; |