diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-06-19 02:20:49 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-06-19 02:20:49 -0400 |
commit | 79147b6612104c0e3a347f3a99adc377047d24fc (patch) | |
tree | 07c585485dcaad1812af07f61b4e9bbf2777f4d1 /src/monkeysphere-server | |
parent | ec3b1c13b5a071234d5e8e9b321f521dc58af924 (diff) |
added monkeysphere-server show-fingerprint
Diffstat (limited to 'src/monkeysphere-server')
-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 ;; |