🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8499

Re: PGP verfication not working

#8499
From: Allan E Johannesen
Date: Thu, 13 Jun 1996 00:00
59 lines
3319 bytes
>>>>> "stock" == Matthew D Stock <stock@acsu.buffalo.edu> writes:
In article <4p9bjm$2a6@azure.acsu.buffalo.edu> stock@acsu.buffalo.edu (Matthew D Stock) writes:


stock> In article <31ADD8B8.2424@erl.noaa.gov>, Alex Hsia <alex@erl.noaa.gov>
stock> wrote:
>> The latest round of newgroup control messages still got logged to the
>> logfile without creating the group.  Anyone else seeing this type of
>> behavior?

stock> Yes, I am seeing this as well.  I followed all of the steps in testing
stock> the install, and everything worked as expected.  I get messages logged
stock> as if the system did the newgroup, but it clearly didn't.  Solutions or
stock> other things to test would be greatly appreciated.  -Matt

Well, I did some experimentation and found a few things.  First, back when I
set up inn, I didn't even set up news with a login home in the passwd file.  To
install PGP, I had to put the keys in a home, so I set up a directory and put
the keys there.  In my experimentation, I found that INN was invoking pgpverify
with HOME=/somewhere/else, which was some place that I probably lied about in
the INN setup some years ago.  I had to set $ENV{'PGPPATH'} in pgpverify to the
real home I'd given the news login in order to fix my error.

Still, however, the article didn't pass muster.

I tinkered with signcontrol, which should make pgp verified articles, and found
that I could pgpverify the output of that script, but pgpverify still failed in
the news process.

Looking at the headers which it checks, Sender: was not in signcontrol's
output, but it was in the article which INN stored, and which pgpverify was
checking.  I found that stripping the Sender: resulted in pgpverify success.
i.e. changing the line:

    PGPSENDER=`pgpverify < ${ARTICLE}`;

to:

    PGPSENDER=`awk '$1!="Sender:" { print $0 }' ${ARTICLE} | pgpverify`;

made things work fine.  At least my locally `signcontrol`d newgroups are
processed all right.  I'll wait for the real thing to come by before I'm
entirely satisfied with this.

The thing that puzzles me is that my article, pre-`signcontrol`, has a Sender:
in it, but signcontrol removes it in its output.  Also, it seems that the
article is `pgp`d by signcontrol without Sender:, since the Sender: being in
the finally posted article is the reason that it doesn't `pgpverify`.

Although, I think I have a procedure that's going to work from now on, it seems
like a kluge to me.  Can anyone tell me what am I doing wrong?

Thanks.

p.s. I extend my appologies to everyone on the net who suffered my pgp newgroup
     experiments when I forgot distribution: local.

Technical Details
Message-ID: <x620jjhiik.fsf@mustang.WPI.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.mbox.zip!not-for-mail
References: <31A35ACB.56E7@mca.com> <4o4mo7$8ig@gs2.UU.NET>

Show Full Headers
Complete Article Headers
Message-ID: <x620jjhiik.fsf@mustang.WPI.EDU>
Subject: Re: PGP verfication not working
Date: Thu, 13 Jun 1996 00:00:00 +0000
From: aej@mustang.WPI.EDU (Allan E Johannesen)
References: <31A35ACB.56E7@mca.com> <4o4mo7$8ig@gs2.UU.NET>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 159973437
Distribution: inet
Sender: aej@mustang.WPI.EDU
Organization: Worcester Polytechnic Institute, Worcester, MA 01609-2280
Newsgroups: news.software.nntp