Article View: news.software.nntp
Article #65965pgpverify, signcontrol, and GnuPG (was: PGPsigning service?)
From: Russ Allbery
Date: Mon, 07 Jul 2003 03:18
Date: Mon, 07 Jul 2003 03:18
58 lines
4051 bytes
4051 bytes
Removing news.groups, adding news.software.nntp. Followups to
news.software.nntp as I think we're getting more technical than
administrative here.
Kai Henningsen <kaih=8njauZKmw-B@khms.westfalen.de> writes:
> And here are patches to do that. [make gpgverify and signcontrol
> generate and check detached signatures]
I finally got a chance to look at this.
After spending some time setting up a real test suite for pgpverify and
signcontrol, I can confirm that you are entirely correct. Both the
generation and the verification have to be done with detached signatures
to work properly with current versions of GnuPG, with signatures generated
from a DSA key.
I played around with various possible solutions to this. I think that
there's a way to convince GnuPG to accept and verify such a signature as
attached, but you have to figure out the right thing to put in the Hash
header, and I didn't feel like figuring it out. (For one, GnuPG kept
complaining about syntax errors. For another, it's very unclear whether
SHA1 or MD5 is the right choice.)
I looked at making minimal modifications to signcontrol and pgpverify to
generate detached signatures, but it ended up involving a lot of
reinventing the wheel of my own PGP::Sign Perl module, so instead I just
ripped the guts out of PGP::Sign and put them into pgpverify and
signcontrol. I checked the results against the new test suite, and I've
just released a new version of pgpverify and of signcontrol.
You can get them both from either of:
<ftp://ftp.isc.org/pub/pgpcontrol/>
<ftp://ftp.eyrie.org/pub/software/pgpcontrol/>
but I've not updated the documentation yet (and it needs a good bit of
work). I'll try to get to that soon. If you want to see the test suite
(which also isn't complete and doesn't fully exercise signcontrol, and
also doesn't yet test the case of a GnuPG RSA signature verified with
GnuPG and PGP 2.6), grab the pgpcontrol tarball; otherwise, you can get
the pgpverify and signcontrol programs separately as always.
Both will also be in the next major release of INN (and maybe on the
STABLE branch -- I'm not sure yet).
As soon as I finish updating the documentation, I'll write a real release
announcement, but that may be a few more weeks. I'm not sure when I'll
find time to work on this again.
I haven't made any changes to gpgverify. Marco may update it if he gets a
chance.
It's tempting to incorporate the new test suite into the INN test suite,
but I'm not sure if I'll do that.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<877k6v9g8h.fsf_-_@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<ylptmitqg8.fsf@windlord.stanford.edu> <d13b1269.0306120641.564f2701@posting.google.com> <87znknutaq.fsf@windlord.stanford.edu> <8njFX7rHw-B@khms.westfalen.de> <8njLeZYHw-B@khms.westfalen.de> <8njauZKmw-B@khms.westfalen.de>Show Full Headers
Complete Article Headers
Message-ID: <877k6v9g8h.fsf_-_@windlord.stanford.edu> Subject: pgpverify, signcontrol, and GnuPG (was: PGPsigning service?) Date: Sun, 06 Jul 2003 20:18:38 -0700 From: Russ Allbery <rra@stanford.edu> References: <ylptmitqg8.fsf@windlord.stanford.edu> <d13b1269.0306120641.564f2701@posting.google.com> <87znknutaq.fsf@windlord.stanford.edu> <8njFX7rHw-B@khms.westfalen.de> <8njLeZYHw-B@khms.westfalen.de> <8njauZKmw-B@khms.westfalen.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp,news.admin.hierarchies Followup-To: news.software.nntp Organization: The Eyrie Lines: 58 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1057547922 21198 171.64.19.147 (7 Jul 2003 03:18:42 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux) Cancel-Lock: sha1:revCYnzspmn1Qr/m/Cxdib8rAMU=