[Announce] GnuPG signature key update and X-Request-PGP
Matt Wronkiewicz
wronkiew@foozone.org
Tue Dec 24 07:29:01 2002
--6sX45UoQRIJXqkqR
Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ"
Content-Disposition: inline
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I attached a bash script and the associated mutt configuration
to download a key from either the X-Request-PGP or
X-OpenPGP-Key-URL fields in a message header. The script is run
as a macro from mutt, bound to <ctrl>-g. I have not done much
scripting with bash, so feel free to point out any
inefficiencies. Here is the mutt configuration line:
macro pager <esc>g '| requestkey | gpg --import -'\n 'pull a PGP key from t=
he canonical source'
I also added x-request-pgp: and x-openpgp-key-url: to hdr_order
so that mutt shows which canonical key sources are available.
--=20
Matt Wronkiewicz <wronkiew@foozone.org>
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=requestkey
#!/bin/bash
# Get the first header line which contains a canonical key address
ARG=`egrep -i -e \^x-request-pgp\:\|\^x-openpgp-key-url\: | head -n 1`;
# Trim off the field name
ARG=${ARG#X-OpenPGP-Key-URL: };
ARG=${ARG#X-Request-PGP: };
# Remove optional angle brackets denoting a URL
ARG=${ARG#<};
ARG=${ARG%>};
#echo $ARG >&2;
# Send the URL to an appropriate downloader and output key data
case $ARG in
finger:*) finger ${ARG#finger:};;
http:*) lynx -dump $ARG 2>/dev/null;;
esac
--lrZ03NoBR/3+SXJZ--
--6sX45UoQRIJXqkqR
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (SunOS)
iD8DBQE+B/83uhibXWhFLW4RAtNsAKDvt9p5yNBZO6Wz/m5+1X6W/fXqdACfXp3O
H7Brszewh9ti1/XRl0Flxvs=
=iriG
-----END PGP SIGNATURE-----
--6sX45UoQRIJXqkqR--