-# FIXME: need to figure out how to automate this, in a batch mode
-# or something.
-trust_uids() {
- for userID ; do
- gpg --keyserver "$KEYSERVER" --search ="$userID"
- gpg --edit-key "$userID"
+trust_key() {
+ for keyID ; do
+ # get the key from the key server
+ gpg --keyserver "$KEYSERVER" --recv-key "$keyID" || failure "could not retrieve key '$keyID'"
+
+ # edit the key to change trust
+ # FIXME: need to figure out how to automate this,
+ # in a batch mode or something.
+ gpg --edit-key "$keyID"