Messages in this thread | | | Date | Sun, 24 Apr 2005 21:34:20 -0500 | From | Matt Domsch <> | Subject | Re: Git-commits mailing list feed. |
| |
On Sun, Apr 24, 2005 at 09:01:28PM -0400, David A. Wheeler wrote: > It may be better to have them as simple detached signatures, which are > completely separate files (see gpg --detached). > Yeah, gpg currently implements detached signatures > by repeating what gets signed, which is unfortunate, > but the _idea_ is the right one.
I solve this with two simple scripts, "sign" calls "cutsig".
-------------- sign
#!/bin/sh
DEFAULT_KEY="my-private-key-string" CUTSIG=~/bin/cutsig.pl usage() { echo "usage: $0 filename" echo " produces filename.sign" }
if [ $# -lt 1 ]; then usage exit 1; fi
gpg --armor --clearsign --detach-sign --default-key "${DEFAULT_KEY} -v -v -o - ${1} | \ ${CUTSIG} > ${1}.sign
exit 0
----------------- cutsig
#!/usr/bin/perl -w
do { $line = <STDIN>; } until $line =~ "-----BEGIN PGP SIGNATURE-----";
print $line; while ( $line = <STDIN>) { print $line; }
exit 0; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |