From: Jameson Graef Rollins Date: Sat, 14 Jun 2008 19:58:19 +0000 (-0400) Subject: Add lsign-key to the trust_keys function so that the trusted key X-Git-Tag: monkeysphere_0.1-1~29 X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=commitdiff_plain;h=31e072432f985e03cc27b101f3a150fb45204d4f Add lsign-key to the trust_keys function so that the trusted key actually ends up with full validity. --- diff --git a/src/common b/src/common index 01e6f32..19b5485 100644 --- a/src/common +++ b/src/common @@ -468,6 +468,11 @@ trust_key() { # get key fingerprint fingerprint=$(get_key_fingerprint "$keyID") + # attach a "non-exportable" signature to the key + # this is required for the key to have any validity at all + # the 'y's on stdin indicates "yes, i really want to sign" + echo -e 'y\ny' | gpg --lsign-key --command-fd 0 "$fingerprint" + # import "full" trust for fingerprint into gpg echo ${fingerprint}:5: | gpg --import-ownertrust if [ $? = 0 ] ; then