# HG changeset patch # User Paul Boddie # Date 1342898709 -7200 # Node ID 30c3b8b61b26dc17aad629a59d606407df023f63 # Parent 24919b9c9bc7b234387d6958335a528f99b63547 Added a convenience script for setting up the Wiki's GPG infrastructure. Added a note about RFC 3156. diff -r 24919b9c9bc7 -r 30c3b8b61b26 actions/PostMessage.py --- a/actions/PostMessage.py Sat Jul 21 21:01:16 2012 +0200 +++ b/actions/PostMessage.py Sat Jul 21 21:25:09 2012 +0200 @@ -61,6 +61,7 @@ # NOTE: RFC 3156 states that signed messages should employ a detached # NOTE: signature but then shows "BEGIN PGP MESSAGE" for signatures # NOTE: instead of "BEGIN PGP SIGNATURE". + # NOTE: The "micalg" parameter is currently not supported. if mimetype == "multipart/signed" and \ message.get_param("protocol") == "application/pgp-signature": diff -r 24919b9c9bc7 -r 30c3b8b61b26 scripts/init_wiki_keyring.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/init_wiki_keyring.sh Sat Jul 21 21:25:09 2012 +0200 @@ -0,0 +1,22 @@ +#!/bin/sh + +WIKI=$1 +USER=$2 + +if [ ! "$WIKI" ]; then + echo "Please specify a Wiki directory." 1>&2 + exit 1 +fi + +if [ ! "$USER" ]; then + echo "Please specify a Web username." 1>&2 + exit 1 +fi + +# Initialise and configure ACLs on the gpg "homedir". + +mkdir $WIKI/gnupg +chmod go-rwx $WIKI/gnupg +setfacl -m u:$USER:rwx $WIKI/gnupg +setfacl -m m:rwx $WIKI/gnupg +setfacl -m d:u:$USER:rwx $WIKI/gnupg