diff options
author | Matt Goins <mjgoins@openflows.com> | 2009-02-20 11:42:10 -0500 |
---|---|---|
committer | Matt Goins <mjgoins@openflows.com> | 2009-02-20 11:42:10 -0500 |
commit | d41fe28eb49e42d7773a223a43fd108913410c99 (patch) | |
tree | a109a88b02089a3f328730a9aa394e3155fda916 /src/share/mh/revoke_key | |
parent | 3b48f2e80fac8d0fc62537ed07b3d1f1946648cd (diff) | |
parent | 9b47ae89c3840eb2af9a57a885e19ccbe36957d5 (diff) |
Merge commit 'jrollins/master'
Diffstat (limited to 'src/share/mh/revoke_key')
-rw-r--r-- | src/share/mh/revoke_key | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/share/mh/revoke_key b/src/share/mh/revoke_key index cccdc22..380236b 100644 --- a/src/share/mh/revoke_key +++ b/src/share/mh/revoke_key @@ -15,7 +15,31 @@ revoke_key() { -# FIXME: implement! -failure "not implemented yet!" +# Coming in here, we expect $HOST_FINGERPRINT to be set, and we +# believe that there is in fact a key. + # our current implementation is very simple: we just want to + # generate the revocation certificate on stdout. This provides + # for the two most likely (but hopefully not common) scenarios: + + # an admin wants a revocation certificate for the host which they + # can store securely offline. In this case, the admin can + # redirect stdout to a file, or can simply copy/paste or + # transcribe from the terminal. + + # Alternately, an admin might want to publish the revocation + # certificate immediately. here's a quick way to do this: + + + # tmp=$(mktemp -d) + # export GNUPGHOME="$tmp" + # gpg --import < /var/lib/monkeysphere/ssh_host_rsa_key.pub.gpg + # monkeysphere-host revoke-key | gpg --import + # gpg --keyserver pool.sks-keyservers.net --send $(hostname -f) + + + # note: we're not using the gpg_host function because we actually + # want to use gpg's UI in this case, so we want to omit --no-tty + + GNUPGHOME="$GNUPGHOME_HOST" gpg --no-greeting --quiet --armor --gen-revoke "0x${HOST_FINGERPRINT}!" } |