3 # Monkeysphere authentication remove-certifier subcommand
5 # The monkeysphere scripts are written by:
6 # Jameson Rollins <jrollins@fifthhorseman.net>
7 # Jamie McClelland <jm@mayfirst.org>
8 # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10 # They are Copyright 2008, and are all released under the GPL, version 3
13 # delete a certifiers key from the host keyring
19 if [ -z "$keyID" ] ; then
20 failure "You must specify the key ID of a key to remove."
23 if gpg_authentication "--no-options --list-options show-uid-validity --keyring ${GNUPGHOME_AUTHENTICATION}/pubring.gpg --list-key 0x${keyID}!" ; then
24 read -p "Really remove above listed identity certifier? (y/N) " OK; OK=${OK:-N}
25 if [ "${OK/y/Y}" != 'Y' ] ; then
26 failure "Identity certifier not removed."
32 # delete the requested key
33 if gpg_authentication "--delete-key --batch --yes 0x${keyID}!" ; then
34 # delete key from host keyring as well
35 gpg_host --delete-key --batch --yes "0x${keyID}!"
37 # update the trustdb for the authentication keyring
38 gpg_authentication "--check-trustdb"
41 echo "Identity certifier removed."
43 failure "Problem removing identity certifier."