1.1 --- a/README.txt Tue Jun 25 18:28:44 2013 +0200
1.2 +++ b/README.txt Tue Jul 09 18:28:56 2013 +0200
1.3 @@ -172,6 +172,12 @@
1.4 server environment. It also uses a modified trust model when invoking gpg in
1.5 order to avoid complaints about the identity of the sender during encryption.
1.6
1.7 +To sign the encrypted message for forwarding, the above command is modified:
1.8 +
1.9 +python tests/test_send.py 1C1AAF83 0891463A --forward 1C1AAF83 \
1.10 + http://localhost/wiki/ShareTest \
1.11 + collection update 'An update to the Wiki.' 'Another update.'
1.12 +
1.13 Below, the mechanisms employed are illustrated through the use of the other
1.14 test programs.
1.15
1.16 @@ -235,6 +241,34 @@
1.17 | gpg --armor -r 0891463A --encrypt --trust-model always \
1.18 | python tests/test_encrypt_wrap.py
1.19
1.20 +Signing and Encrypting then Signing
1.21 +-----------------------------------
1.22 +
1.23 +Where a message is to be forwarded and not decrypted, it will be signed by the
1.24 +author, encrypted, but then signed by the forwarder (perhaps initially the
1.25 +author):
1.26 +
1.27 + python tests/test_message.py collection update 'An update to the Wiki.' \
1.28 + 'Another update.' \
1.29 +| python tests/test_sign.py 1C1AAF83 \
1.30 +| python tests/test_encrypt.py 0891463A \
1.31 +| python tests/test_sign.py 1C1AAF83
1.32 +
1.33 +The complicated recipe based on the individual operations is as follows:
1.34 +
1.35 + python tests/test_message.py collection update 'An update to the Wiki.' \
1.36 + 'Another update.' \
1.37 +> test.txt \
1.38 +&& cat test.txt \
1.39 +| gpg --armor -u 1C1AAF83 --detach-sig \
1.40 +| python tests/test_sign_wrap.py test.txt \
1.41 +| gpg --armor -r 0891463A --encrypt --trust-model always \
1.42 +| python tests/test_encrypt_wrap.py \
1.43 +> test2.txt \
1.44 +&& cat test2.txt \
1.45 +| gpg --armor -u 1C1AAF83 --detach-sig \
1.46 +| python tests/test_sign_wrap.py test2.txt
1.47 +
1.48 Posting a Message
1.49 -----------------
1.50