Thread View: news.software.nntp
6 messages
6 total messages
Started by Graham Drabble
Sat, 01 Jan 2005 16:23
pgpverify under Windows
Author: Graham Drabble
Date: Sat, 01 Jan 2005 16:23
Date: Sat, 01 Jan 2005 16:23
47 lines
2350 bytes
2350 bytes
Hi all, Firstly can anyone confirm that <cmsg-20041228210001$0406@isc.org> has a valid PGP sig? I'm trying to write a perl script (I'm using ActivePerl 5.8.6) that will scan control.newgroup and control.rmgroup and then check to see which hierarchy the control message is affecting and then (if it's a hierarchy we are interested in) run PGP verify on it. I've made the following alterations to pgpverify: removed #! line and replaced with "use warnings;" - this is perl under Windows, we don't use shebang lines. Set $gpgv = '/Progra~1/gnupg/gpgv.exe'; commented out $pgp - not installed $keyring = '/gnupg/pubring.gpg'; $tmpdir = "/temp"; $syslog_method = ''; My script, the modified pgpverify and the ini file used by my script are available from http://users.ox.ac.uk/~sjoh1646/ctrl-message.zip . When I run it (the above message is the only Big8/uk.* control message on spool) I get: Sat Jan 1 16:11:31 2005pgpverify.pl: verification failed Sat Jan 1 16:11:31 2005... while processing <cmsg-20041228210001 $0406@isc.org> rmgroup soc.history.african.biafra: 65280 The last line is from my script in the form <Control-header>: <exit-code-from-PGPVerify> Any guesses? That isn't a code that PGPVerify is supposed to produce! For information I'm connecting to Hamster Playground 1.22 . -- Graham Drabble If you're interested in what goes on in other groups or want to find an interesting group to read then check news.groups.reviews for what others have to say or contribute a review for others to read.
Re: pgpverify under Windows
Author: Maurice Janssen
Date: Sat, 01 Jan 2005 16:58
Date: Sat, 01 Jan 2005 16:58
35 lines
2198 bytes
2198 bytes
Graham Drabble wrote:
>Hi all,
>
>Firstly can anyone confirm that <cmsg-20041228210001$0406@isc.org>
>has a valid PGP sig?
Yep, it's correct.
<snip>
>Any guesses? That isn't a code that PGPVerify is supposed to produce!
>
>For information I'm connecting to Hamster Playground 1.22 .
Maybe some of the headers have been changed in some way? This is the
header of the article as it appears on my spool:
Path: <snip_for_readability>!newsfeed.stanford.edu!bounce-back
From: group-admin@isc.org
Newsgroups: soc.history.african.biafra
Subject: cmsg rmgroup soc.history.african.biafra
Control: rmgroup soc.history.african.biafra
Approved: group-admin@isc.org
Date: Tue, 28 Dec 2004 13:00:01 -0800
Message-ID: <cmsg-20041228210001$0406@isc.org>
X-PGP-Sig: 2.6.3a Subject,Control,Message-ID,Date,From,Sender
iQCVAwUBQdHJUsJdOtO4janBAQHatgP/TW+DLIAuajqxqI3wgReu/55WZbAmojI3
WDNB+LiOFSgOX18vbHaIZ006HFiY6cqj2w2RjB0WWGbg7auaaj1yY877FTM0KCiR
VZgkS3GNqcmlFFKklc+4u5LjIwkv6OLlASRqxtH/CDuW8XBtd4jSFcgBpm7yA3uQ
hTAJ22YCrA8=
=YHf4
Xref: reader.z74.net control.rmgroup:124
--
Maurice
Re: pgpverify under Windows
Author: Graham Drabble
Date: Sat, 01 Jan 2005 17:44
Date: Sat, 01 Jan 2005 17:44
32 lines
2034 bytes
2034 bytes
On 01 Jan 2005 Maurice Janssen <mauricej@xs4all.nl> wrote in news:cr6kse$1jj$1@linux.z74.net: > Graham Drabble wrote: >>Hi all, >> >>Firstly can anyone confirm that <cmsg-20041228210001$0406@isc.org> >>has a valid PGP sig? > > Yep, it's correct. In some ways that's a good thing! > <snip> >>Any guesses? That isn't a code that PGPVerify is supposed to >>produce! >> >>For information I'm connecting to Hamster Playground 1.22 . > > Maybe some of the headers have been changed in some way? This is > the header of the article as it appears on my spool: I've now done some more checking. In both my news spool and the file my script passes to pgpverify the continuation lines in X-PGP-Sig start with a tab (Ascii 09) whereas your article below starts with 8 spaces (ASCII 20). Can someone check which is correct? -- Graham Drabble If you're interested in what goes on in other groups or want to find an interesting group to read then check news.groups.reviews for what others have to say or contribute a review for others to read.
Re: pgpverify under Windows
Author: Neil W Rickert
Date: Sat, 01 Jan 2005 18:05
Date: Sat, 01 Jan 2005 18:05
11 lines
1784 bytes
1784 bytes
Graham Drabble <graham.drabble@lineone.net> writes: >I've now done some more checking. In both my news spool and the file my >script passes to pgpverify the continuation lines in X-PGP-Sig start >with a tab (Ascii 09) whereas your article below starts with 8 spaces >(ASCII 20). Can someone check which is correct? This should not matter, since the X-PGP-Sig: header is not used in the message hash. Most likely the tab is correct, and the earlier poster accidently converted tab to spaces while using cut and paste.
Re: pgpverify under Windows
Author: Maurice Janssen
Date: Sat, 01 Jan 2005 18:15
Date: Sat, 01 Jan 2005 18:15
18 lines
1877 bytes
1877 bytes
Neil W Rickert wrote: >Graham Drabble <graham.drabble@lineone.net> writes: > >>I've now done some more checking. In both my news spool and the file my >>script passes to pgpverify the continuation lines in X-PGP-Sig start >>with a tab (Ascii 09) whereas your article below starts with 8 spaces >>(ASCII 20). Can someone check which is correct? My mistake, it's a single tab charcter. >This should not matter, since the X-PGP-Sig: header is not used in >the message hash. Most likely the tab is correct, and the earlier >poster accidently converted tab to spaces while using cut and paste. Yep. -- Maurice
Re: pgpverify under Windows
Author: Graham Drabble
Date: Sat, 01 Jan 2005 19:12
Date: Sat, 01 Jan 2005 19:12
31 lines
1827 bytes
1827 bytes
On 01 Jan 2005 Graham Drabble <graham.drabble@lineone.net> wrote in
news:Xns95D1A6D3D476grahamdrabblelineone@ID-77355.user.dfncis.de:
> I've made the
> following alterations to pgpverify:
> $keyring = '/gnupg/pubring.gpg';
Got it!
That's part of the problem, it shouldn't have the /pubring.gpg on the
end. Also gpg under Windows insists that you use '\' not '/'.
Therefore I changed that to
$keyring = '\gnupg'
and then later
push (@command, "--keyring=$keyring/pubring.gpg");
to
push (@command, "--keyring=$keyring\\pubring.gpg");
(I'm not using PGP so dn't know what you need to change if you want
it to work with that.)
--
Graham Drabble
If you're interested in what goes on in other groups or want to find
an interesting group to read then check news.groups.reviews for what
others have to say or contribute a review for others to read.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads