X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fcommon;h=19b5485a37feb2118edb350ae0e34da67e36613a;hb=28c7489bb830c8ef9bb7c6e40e3fc4d47a702614;hp=01e6f32093da85de5004ea29b62ec220c7d82bd9;hpb=2ed952e2207d5278cfe96db2d7eeed40709f846b;p=monkeysphere.git 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