Problem checking signatures
Frank Tobin
ftobin at uiuc.edu
Wed Jan 5 05:02:50 CET 2000
Werner Koch, at 09:17 on Wed, 5 Jan 2000, wrote:
> ( echo "-----BEGIN PGP SIGNED MESSAGE-----"
> echo "Hash: SHA1"
> echo
> cat foo
> cat foo.asc
> echo
> ) | gpg --verify
>
> it works.
For me, in order to get the signature to verify, I first stripped the
carriage returns, and then put an echo before the "cat foo.asc" line.
So, in it's entirety:
( echo "-----BEGIN PGP SIGNED MESSAGE-----"
echo "Hash: SHA1"
echo
perl -wpe "s/\r//" < foo
echo
cat foo.asc
) | gpg --verify
This may be helpful to those of you writing small scripts.
--
Frank Tobin http://www.neverending.org/~ftobin/
"To learn what is good and what is to be valued,
those truths which cannot be shaken or changed." Myst: The Book of Atrus
OpenPGP: 4F86 3BBB A816 6F0A 340F 6003 56FF D10A 260C 4FA3
More information about the Gnupg-devel
mailing list