Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

My sister opened a computer store in Hawaii. She sells C shells down by the seashore.


computers / news.software.nntp / INN 2.7.0 rc1 - pgpverify issue - CentOS 7

SubjectAuthor
* INN 2.7.0 rc1 - pgpverify issue - CentOS 7Jesse Rehmer
+* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Thomas Hochstein
|`- Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Julien ÉLIE
`* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Russ Allbery
 `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Jesse Rehmer
  `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Russ Allbery
   `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Russ Allbery
    `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Jesse Rehmer
     `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Russ Allbery
      +- Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Jesse Rehmer
      `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Julien ÉLIE
       `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Russ Allbery
        +- Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Jesse Rehmer
        `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Julien ÉLIE
         `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Russ Allbery
          `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Jesse Rehmer
           +- Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Russ Allbery
           `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Julien ÉLIE
            `* Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Jesse Rehmer
             `- Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7Julien ÉLIE

1
INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t6jf6o$1i26$1@bwh01.blueworldhosting.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=795&group=news.software.nntp#795

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!.POSTED.023-084-030-207.res.spectrum.com!not-for-mail
From: jesse.re...@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Tue, 24 May 2022 15:29:12 -0500
Organization: BlueWorld Usenet (https://usenet.blueworldhosting.com)
Message-ID: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 May 2022 20:29:12 -0000 (UTC)
Injection-Info: bwh01.blueworldhosting.com; posting-account="jesse"; posting-host="023-084-030-207.res.spectrum.com:23.84.30.207";
logging-data="51270"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:za9j2NJ3OXHc/HR0qPZZ7Dv7GGc= sha256:CAuW12L5Ipj+ZXv8RKUHSfzbEJNwV1NhS3YJAArZlyY=
sha1:Z7chqf9V6dmWVCW74gV3DVnlHkc= sha256:UTbTV1TLQAkzSD/cYxDaWckAKMq4XDDVh0qADdHOiFo=
Content-Language: en-US
 by: Jesse Rehmer - Tue, 24 May 2022 20:29 UTC

I'm having some minor issues with pgpverify. The primary issue is that
the gpg command executed is failing:

../bin/pgpverify -test < control.test
<SNIP>
gpg: invalid option "--allow-weak-digest-algos"

The --allow-weak-digest-algos option is not available in my version of
GnuPG. Apparently it was introduced in GnuPG 2.0.23, but CentOS/RHEL 7
installs 2.0.22.

When I remove --allow-weak-digest-algos from pgpverify it executes, but
I'm wondering whether this portion of the output is expected:

[GNUPG:] TRUST_UNDEFINED
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the
owner.

I followed the tail end of the INSTALL document exactly for setting up
the keyring, but unsure whether this portion is related:

"You can safely answer "no" to questions about whether you want to sign,
trust, or certify keys. And you may afterwards do:

cp <pathetc in inn.conf>/pgp/pubring.gpg <pathetc in
inn.conf>/pgp/trustedkeys.gpg"

It seems the warning is related to the trust status of the key, but it
doesn't seem like pgpverify is concerned about this, and unsure whether
I should be or not.

Cheers,

Jesse Rehmer

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<nsn.20220525193512.893@scatha.ancalagon.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=798&group=news.software.nntp#798

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!thangorodrim.ancalagon.de!.POSTED.scatha.ancalagon.de!not-for-mail
From: thh...@thh.name (Thomas Hochstein)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 19:35:14 +0200
Message-ID: <nsn.20220525193512.893@scatha.ancalagon.de>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: thangorodrim.ancalagon.de; posting-host="scatha.ancalagon.de:10.0.1.1";
logging-data="15188"; mail-complaints-to="abuse@th-h.de"
User-Agent: ForteAgent/8.00.32.1272
X-Clacks-Overhead: GNU Terry Pratchett
X-Face: *OX>R5kq$7DjZ`^-[<HL?'n9%\ZDfCz/_FfV0_tpx7w{Vv1*byr`TC\[hV:!SJosK'1gA>1t8&@'PZ-tSFT*=<}JJ0nXs{WP<@(=U!'bOMMOH&Q0}/(W_d(FTA62<r"l)J\)9ERQ9?6|_7T~ZV2Op*UH"2+1f9[va
X-NNTP-Posting-Date: Wed, 25 May 2022 19:35:12 +0200
Cancel-Lock: sha1:p2IG4hUB+cFsSdKN78qZnqwunkA=
 by: Thomas Hochstein - Wed, 25 May 2022 17:35 UTC

Jesse Rehmer schrieb:

> The --allow-weak-digest-algos option is not available in my version of
> GnuPG.

You'll need GnuPG 1.x to verify old keys.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t6lskb$1e58i$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=799&group=news.software.nntp#799

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176-143-2-105.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 20:30:35 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <t6lskb$1e58i$1@news.trigofacile.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<nsn.20220525193512.893@scatha.ancalagon.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 25 May 2022 18:30:35 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="1512722"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:wSDOclgHxrLMOMD5hweTVkl+rnQ= sha256:drKfI4/DkrYkBQxxQkK2uk+Du5TfOmGUircgJertfts=
sha1:QH9gOhfa5jTdA9Wx/MdzZdvmjy0= sha256:4iRxirv6rsu+IAhwA4lIh8HXLTtd6SefatGFvLTRHeU=
In-Reply-To: <nsn.20220525193512.893@scatha.ancalagon.de>
 by: Julien ÉLIE - Wed, 25 May 2022 18:30 UTC

Hi Thomas,

>> The --allow-weak-digest-algos option is not available in my version of
>> GnuPG.
>
> You'll need GnuPG 1.x to verify old keys.

Besides 1.x, older versions in the 2.0.x branch can also verify old keys I think.
It changed in GnuPG 2.0.23:

What's New in 2.0.23
====================

* gpg: Reject signatures made using the MD5 hash algorithm unless the
new option --allow-weak-digest-algos or --pgp2 are given.

Jesse, did you try to install the previous version of pgpverify?
You'll see at the beginning of pgpverify 1.30, shipped with INN 2.7.0 (and since INN 2.6.2):

# Changes from 1.29 -> 1.30
# -- Support for GnuPG's gpg binary (in addition to gpgv). gpg (from
# GnuPG 1.x before 1.4.20, and GnuPG 2.0.x) still validates signatures
# made with weak digest algorithms like MD5 whereas current versions
# of gpgv no longer do.
# -- This new release of pgpverify requires at least GnuPG 1.4.20 or 2.1.0.
# If you're using an older version of GnuPG, you have to keep using
# pgpverify 1.29.

You should try pgpverify 1.29 from INN 2.6.1:
https://raw.githubusercontent.com/InterNetNews/inn/2.6.1/control/pgpverify.in

Update the first two lines with your paths.

Does it change anything in the behaviour you see?

--
Julien ÉLIE

« – Tu parles ?
– Tu parles ! » (Astérix)

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<87zgj5xukm.fsf@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=800&group=news.software.nntp#800

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.killfile.org!news.eyrie.org!.POSTED!not-for-mail
From: eag...@eyrie.org (Russ Allbery)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 12:48:09 -0700
Organization: The Eyrie
Message-ID: <87zgj5xukm.fsf@hope.eyrie.org>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
logging-data="10998"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:NP9BxAf8R5xqfWJbMiqs56p8W+M=
 by: Russ Allbery - Wed, 25 May 2022 19:48 UTC

Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:

> I'm having some minor issues with pgpverify. The primary issue is that
> the gpg command executed is failing:

> ./bin/pgpverify -test < control.test
> <SNIP>
> gpg: invalid option "--allow-weak-digest-algos"

> The --allow-weak-digest-algos option is not available in my version of
> GnuPG. Apparently it was introduced in GnuPG 2.0.23, but CentOS/RHEL 7
> installs 2.0.22.

The right fix here is probably to make sure you have gpg1 installed (I'm
think any vintage of Linux distro that has gpg v2 also has a gpg1
package), and then set GPG=/usr/bin/gpg1 (I think that will do it,
although not completely sure). You can also use an older version of
pgpverify, but using gpg1 is probably simplest.

In general, right now you want to use gpg1 instead of gpg v2 to verify
control messages since some control message issuers haven't updated their
keys and produce signatures that the current versions of gpg v2 can't
verify at all.

> When I remove --allow-weak-digest-algos from pgpverify it executes, but
> I'm wondering whether this portion of the output is expected:

> [GNUPG:] TRUST_UNDEFINED
> gpg: WARNING: This key is not certified with a trusted signature!
> gpg: There is no indication that the signature belongs to the
> owner.

This is fine, INN doesn't use the trust database. Instead, all keys in
the keyring are considered trusted.

--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>

Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t6mj2a$coi$1@bwh01.blueworldhosting.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=801&group=news.software.nntp#801

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!.POSTED.023-084-030-207.res.spectrum.com!not-for-mail
From: jesse.re...@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 19:53:29 -0500
Organization: BlueWorld Usenet (https://usenet.blueworldhosting.com)
Message-ID: <t6mj2a$coi$1@bwh01.blueworldhosting.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 26 May 2022 00:53:30 -0000 (UTC)
Injection-Info: bwh01.blueworldhosting.com; posting-account="jesse"; posting-host="023-084-030-207.res.spectrum.com:23.84.30.207";
logging-data="13074"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:8EeCASIAoSg140UQquzxLrwkGbY= sha256:NKNC87MDqiex4tIY+iCVISdBMFpG3qj+CBwdNxcFWOw=
sha1:0A+4mil2u2PC9WAPiVAEfLj1Jio= sha256:YZXhwh0gx8BGbuglfK/DfT+IusjtLyDYKrQw/wL6D+U=
Content-Language: en-US
In-Reply-To: <87zgj5xukm.fsf@hope.eyrie.org>
 by: Jesse Rehmer - Thu, 26 May 2022 00:53 UTC

On 5/25/22 2:48 PM, Russ Allbery wrote:
> The right fix here is probably to make sure you have gpg1 installed (I'm
> think any vintage of Linux distro that has gpg v2 also has a gpg1
> package), and then set GPG=/usr/bin/gpg1 (I think that will do it,
> although not completely sure). You can also use an older version of
> pgpverify, but using gpg1 is probably simplest.
>
> In general, right now you want to use gpg1 instead of gpg v2 to verify
> control messages since some control message issuers haven't updated their
> keys and produce signatures that the current versions of gpg v2 can't
> verify at all.

When pgpverify 1.3.0 (with the --allow-weak-digest-algos option removed)
and installing the gnupg1 package, both the new and old style keys are
being verified:

gpg: Signature made Tue 24 May 2022 12:35:50 PM CDT using RSA key ID
970EB10B
[GNUPG:] SIG_ID xS054Q+uMF6z5F/P+0z0sq8qrrI 2022-05-24 1653413750
[GNUPG:] GOODSIG FA423E89970EB10B control@usenet-fr.news.eu.org
gpg: Good signature from "control@usenet-fr.news.eu.org"

gpg: Signature made Wed 09 Jul 1997 04:57:10 PM CDT using RSA key ID
B88DA9C1
[GNUPG:] SIG_ID LYzKW94Pg/EiHeH1VcutLWdrimY 1997-07-09 868485430
[GNUPG:] GOODSIG C25D3AD3B88DA9C1 news.announce.newgroups
gpg: Good signature from "news.announce.newgroups"

Thanks for the pointer about gpg1, I didn't need to set any variables by
the way.

Also - thanks to Julien for pointing out the change details. Will
admit, I glossed over that.

Cheers,

Jesse

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<87ee0hxg87.fsf@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=802&group=news.software.nntp#802

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.killfile.org!news.eyrie.org!.POSTED!not-for-mail
From: eag...@eyrie.org (Russ Allbery)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 17:58:00 -0700
Organization: The Eyrie
Message-ID: <87ee0hxg87.fsf@hope.eyrie.org>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org>
<t6mj2a$coi$1@bwh01.blueworldhosting.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
logging-data="10998"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:K6NG78cYOqBLKjHmBsB/V3GtlYs=
 by: Russ Allbery - Thu, 26 May 2022 00:58 UTC

Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:

> When pgpverify 1.3.0 (with the --allow-weak-digest-algos option removed)
> and installing the gnupg1 package, both the new and old style keys are
> being verified:

So you still have to modify pgpverify with gpg1? Hm. I guess that makes
sense; both GnuPG implementations are too old to support the flag. Well,
that's irritating, although I guess we already knew that was going to be a
problem on some hosts.

--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>

Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<87a6b5xfv7.fsf@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=803&group=news.software.nntp#803

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.killfile.org!news.eyrie.org!.POSTED!not-for-mail
From: eag...@eyrie.org (Russ Allbery)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 18:05:48 -0700
Organization: The Eyrie
Message-ID: <87a6b5xfv7.fsf@hope.eyrie.org>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org>
<t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
logging-data="10998"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:tyRS2UOBBO0Ge6Z+bgXkwrfNGoc=
 by: Russ Allbery - Thu, 26 May 2022 01:05 UTC

Russ Allbery <eagle@eyrie.org> writes:
> Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:

>> When pgpverify 1.3.0 (with the --allow-weak-digest-algos option
>> removed) and installing the gnupg1 package, both the new and old style
>> keys are being verified:

> So you still have to modify pgpverify with gpg1? Hm. I guess that
> makes sense; both GnuPG implementations are too old to support the flag.
> Well, that's irritating, although I guess we already knew that was going
> to be a problem on some hosts.

Oh, I see, you need to convince it to use gpgv and then I think it will
not pass that flag and might work. I'm not sure off-hand what the best
way to do that is. I think it only uses gpgv if it can't find gpg, so
forcing that situation is a little tricky.

--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>

Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t6mkfu$fsu$1@bwh01.blueworldhosting.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=804&group=news.software.nntp#804

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!.POSTED.023-084-030-207.res.spectrum.com!not-for-mail
From: jesse.re...@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 20:17:50 -0500
Organization: BlueWorld Usenet (https://usenet.blueworldhosting.com)
Message-ID: <t6mkfu$fsu$1@bwh01.blueworldhosting.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 26 May 2022 01:17:50 -0000 (UTC)
Injection-Info: bwh01.blueworldhosting.com; posting-account="jesse"; posting-host="023-084-030-207.res.spectrum.com:23.84.30.207";
logging-data="16286"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:HbpbeD3dBqGUYjNKhqs+n9DUBDM= sha256:dq4AmqAGOa5pgDJEoRA44kN7cOVMtsVWQL8+P1Wt/e0=
sha1:zVYpZAFJiNerKHJ7CNxGgVB4j3A= sha256:QhRu8jqHUT3sHneq3a+IGIQaNs66AOlfN29Tge4CU/w=
Content-Language: en-US
In-Reply-To: <87a6b5xfv7.fsf@hope.eyrie.org>
 by: Jesse Rehmer - Thu, 26 May 2022 01:17 UTC

On 5/25/22 8:05 PM, Russ Allbery wrote:

>> So you still have to modify pgpverify with gpg1? Hm. I guess that
>> makes sense; both GnuPG implementations are too old to support the flag.
>> Well, that's irritating, although I guess we already knew that was going
>> to be a problem on some hosts.
>
> Oh, I see, you need to convince it to use gpgv and then I think it will
> not pass that flag and might work. I'm not sure off-hand what the best
> way to do that is. I think it only uses gpgv if it can't find gpg, so
> forcing that situation is a little tricky.
>

Correct, if I don't remove that flag from pgpverify no matter what I try
I end with:

gpg: invalid option "--allow-weak-digest-algos"

I can sympathize that this is not an easy solution for developers to
work around given the large variation in "default" versions of GnuPG
between distributions. This particular issue is one example why I'm
considering moving to FreeBSD from Linux. Overall seems easier to get
specific (mostly newer) versions of packages installed, whether via
pre-built packages or ports.

I work in the RHEL world and kept my own machines in parity with 'work'
to keep things simple. Time is teaching me this is not always wise
depending on the use case.

Cheers,

Jesse

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<875yltxexv.fsf@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=805&group=news.software.nntp#805

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.killfile.org!news.eyrie.org!.POSTED!not-for-mail
From: eag...@eyrie.org (Russ Allbery)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 18:25:48 -0700
Organization: The Eyrie
Message-ID: <875yltxexv.fsf@hope.eyrie.org>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org>
<t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
logging-data="10998"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:x+mVjVuEWWjzSAwiLyE3/92zvt0=
 by: Russ Allbery - Thu, 26 May 2022 01:25 UTC

Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:

> Correct, if I don't remove that flag from pgpverify no matter what I try I
> end with:

> gpg: invalid option "--allow-weak-digest-algos"

The thing to try would be to set $gpg to '' in INN::Config and make sure
$gpgv points to the gpgv binary on your system. I bet that will work, but
making it work automatically is harder. We'd have to somehow probe for
whether gpg supported the option.

It's one of those problems that will go away eventually when everyone
upgrades older systems with older versions of GnuPG.

> I can sympathize that this is not an easy solution for developers to work
> around given the large variation in "default" versions of GnuPG between
> distributions.

Yeah, it adds and removes a wild number of options and supported things
between versions.

--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>

Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t6mlif$i7m$1@bwh01.blueworldhosting.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=806&group=news.software.nntp#806

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!.POSTED.023-084-030-207.res.spectrum.com!not-for-mail
From: jesse.re...@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 25 May 2022 20:36:14 -0500
Organization: BlueWorld Usenet (https://usenet.blueworldhosting.com)
Message-ID: <t6mlif$i7m$1@bwh01.blueworldhosting.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 26 May 2022 01:36:15 -0000 (UTC)
Injection-Info: bwh01.blueworldhosting.com; posting-account="jesse"; posting-host="023-084-030-207.res.spectrum.com:23.84.30.207";
logging-data="18678"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:f9AyPoBUi2NjS+QjHd0Bh2yGL4k= sha256:C6jysM4v3TT5KjJ9XZvGG9fp6ZuB/LkbgAII09PWTDU=
sha1:ztixnvP8UUGSnmGFdsfILnM4Myc= sha256:SKNgDluEA10XcOGVnlN4TDkGVPMJ7E8bH/qJQx4y9TI=
Content-Language: en-US
In-Reply-To: <875yltxexv.fsf@hope.eyrie.org>
 by: Jesse Rehmer - Thu, 26 May 2022 01:36 UTC

On 5/25/22 8:25 PM, Russ Allbery wrote:
> Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
>
>> Correct, if I don't remove that flag from pgpverify no matter what I try I
>> end with:
>
>> gpg: invalid option "--allow-weak-digest-algos"
>
> The thing to try would be to set $gpg to '' in INN::Config and make sure
> $gpgv points to the gpgv binary on your system. I bet that will work, but
> making it work automatically is harder. We'd have to somehow probe for
> whether gpg supported the option.

Turns out, I don't need the gnupg1 package to verify old keys since
GnuPG 2.0.22 supports the old format. Apparently, my only issue is that
I didn't read the changes to know that my version of GnuPG isn't going
to work with pgpverify 1.3.0.

Cheers,

Jesse

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t6nhlc$1fm8c$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=807&group=news.software.nntp#807

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Thu, 26 May 2022 11:35:40 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <t6nhlc$1fm8c$1@news.trigofacile.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 26 May 2022 09:35:40 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105";
logging-data="1562892"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:wTzBwwpt5Q3hFtR5t6csrFuofkk= sha256:YBYeKWM/zMuvJw5YVga3OTTtC8nTjqen1jPyJEcY6yU=
sha1:JNLr/jHfNrt9ATweCN5vuzWcbH0= sha256:IPQDezaQpcxViRVlB+7PPi/+PPkoN9AaEg7Im+f7Lyg=
In-Reply-To: <875yltxexv.fsf@hope.eyrie.org>
 by: Julien ÉLIE - Thu, 26 May 2022 09:35 UTC

Hi Russ,

>> Correct, if I don't remove that flag from pgpverify no matter what I try I
>> end with:
>
>> gpg: invalid option "--allow-weak-digest-algos"
>
> The thing to try would be to set $gpg to '' in INN::Config and make sure
> $gpgv points to the gpgv binary on your system. I bet that will work, but
> making it work automatically is harder. We'd have to somehow probe for
> whether gpg supported the option.

gpg seems to check its arguments in order, and it exits with status 2 if
an argument is not supported.
Why not just run:

gpg --allow-weak-digest-algos --version

If the option is supported, gpg displays several lines and exits
gracefully. Otherwise, it raises an error:

gpg: Invalid option "--allow-weak-digest-algos"
zsh: exit 2 gpg --allow-weak-digest-algos --version

--
Julien ÉLIE

« It's documented in The Book, somewhere… » (Larry Wall)

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<87v8tsgwzd.fsf@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=810&group=news.software.nntp#810

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.killfile.org!news.eyrie.org!.POSTED!not-for-mail
From: eag...@eyrie.org (Russ Allbery)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Thu, 26 May 2022 08:00:22 -0700
Organization: The Eyrie
Message-ID: <87v8tsgwzd.fsf@hope.eyrie.org>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org>
<t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com>
<875yltxexv.fsf@hope.eyrie.org> <t6nhlc$1fm8c$1@news.trigofacile.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: hope.eyrie.org;
logging-data="23672"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:ohTdHHBJhJAQeDn2ShJvtgebZ5U=
 by: Russ Allbery - Thu, 26 May 2022 15:00 UTC

Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> gpg seems to check its arguments in order, and it exits with status 2 if
> an argument is not supported. Why not just run:

> gpg --allow-weak-digest-algos --version

> If the option is supported, gpg displays several lines and exits
> gracefully. Otherwise, it raises an error:

> gpg: Invalid option "--allow-weak-digest-algos"
> zsh: exit 2 gpg --allow-weak-digest-algos --version

Thanks, yes, that was exactly the kind of thing I was hoping for but was
too groggy from travel to think through.

I wonder if we could do something like that in configure and pass down
something to pgpverify via INN::Config to tell it whether or not to add
that flag. This will probably only be needed temporarily, but it looks
like we have at least one user who is going to run into that version
bound, so there will probably be more.

I think it's safe to make the assumption that any version of GnuPG too old
to support that flag will still support the weak digest algorithms,
although I admit that while I researched this while updating PGP::Sign, I
have now forgotten all of my conclusions other than the version bound I
decided to adopt.

--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>

Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t6o62j$3qp3$1@bwh01.blueworldhosting.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=811&group=news.software.nntp#811

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!.POSTED.023-084-030-207.res.spectrum.com!not-for-mail
From: jesse.re...@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Thu, 26 May 2022 10:24:02 -0500
Organization: BlueWorld Usenet (https://usenet.blueworldhosting.com)
Message-ID: <t6o62j$3qp3$1@bwh01.blueworldhosting.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org>
<t6nhlc$1fm8c$1@news.trigofacile.com> <87v8tsgwzd.fsf@hope.eyrie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 26 May 2022 15:24:03 -0000 (UTC)
Injection-Info: bwh01.blueworldhosting.com; posting-account="jesse"; posting-host="023-084-030-207.res.spectrum.com:23.84.30.207";
logging-data="125731"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:+YxClkme9v1K2QsNnmc89BZPwlo= sha256:ou73K7CoLr2op0v0KZKkOfM5sHK17S/Td2YMI1HK1Lw=
sha1:8giaDPdozf2NwREG+I9aFt/25yE= sha256:i6eN6XSgGuzX5TMpMw96XhFgJJpKjo104Uy6fUUdQ0w=
Content-Language: en-US
In-Reply-To: <87v8tsgwzd.fsf@hope.eyrie.org>
 by: Jesse Rehmer - Thu, 26 May 2022 15:24 UTC

On 5/26/22 10:00 AM, Russ Allbery wrote:
>
> I think it's safe to make the assumption that any version of GnuPG too old
> to support that flag will still support the weak digest algorithms,
> although I admit that while I researched this while updating PGP::Sign, I
> have now forgotten all of my conclusions other than the version bound I
> decided to adopt.
>

My understanding is that versions prior to 2.0.23 support the weak
digests without the flag. Version 2.0.23+ support them, but only when
using the flag that was introduced in 2.0.23.

Can confirm that 2.0.22 without the flag is good on my end.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t6olgq$1gv2v$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=814&group=news.software.nntp#814

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Thu, 26 May 2022 21:47:38 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <t6olgq$1gv2v$1@news.trigofacile.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org>
<t6nhlc$1fm8c$1@news.trigofacile.com> <87v8tsgwzd.fsf@hope.eyrie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 26 May 2022 19:47:38 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105";
logging-data="1604703"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:oF32VOxb5yTcO0aLzZ3s63H/gfI= sha256:QIDuSZMJ7IJuZLai+lesQ+psJ0Uns/kblEdNQC+YscM=
sha1:C5UiguiYHkRhEUXP+W4xODRrn08= sha256:y3AtAsYepaSqG2OqK2/6b+xpBMDGDvpN8FDAP/J7McY=
In-Reply-To: <87v8tsgwzd.fsf@hope.eyrie.org>
 by: Julien ÉLIE - Thu, 26 May 2022 19:47 UTC

Hi Russ,

>> gpg seems to check its arguments in order, and it exits with status 2 if
>> an argument is not supported. Why not just run:
>
>> gpg --allow-weak-digest-algos --version
>
>> If the option is supported, gpg displays several lines and exits
>> gracefully. Otherwise, it raises an error:
>
>> gpg: Invalid option "--allow-weak-digest-algos"
>> zsh: exit 2 gpg --allow-weak-digest-algos --version
>
> Thanks, yes, that was exactly the kind of thing I was hoping for but was
> too groggy from travel to think through.
>
> I wonder if we could do something like that in configure and pass down
> something to pgpverify via INN::Config to tell it whether or not to add
> that flag. This will probably only be needed temporarily, but it looks
> like we have at least one user who is going to run into that version
> bound, so there will probably be more.

Would the following changes correspond to what you had in mind?
(the patch is not complete, but has the main logic)

I'll bump the version number of pgpverify to 1.31 if that's OK for you.

--- a/configure.ac
+++ b/configure.ac
@@ -441,7 +441,9 @@

dnl Look for PGP 5.0's pgpv, then pgp, then pgpgpg (not sure why anyone would
dnl have pgpgpg and not gpgv, but it doesn't hurt). Separately look for
-dnl GnuPG (which we prefer).
+dnl GnuPG (which we prefer) and whether it supports a flag introduced in
+dnl GnuPG 2.0.23 to allow weak hash algorithms like MD5 in old PGP keys still
+dnl used to sign control articles.
DO_PGPVERIFY=true
AC_ARG_VAR([GPGV], [Location of GnuPG gpgv program])
AC_ARG_VAR([GPG], [Location of GnuPG gpg program])
@@ -454,6 +456,16 @@
AC_SUBST([DO_PGPVERIFY])

+GPG_HAS_ALLOW_WEAK_DIGEST_ALGOS_FLAG=0
+AS_IF([test x"$GPG" != x],
+ [AC_MSG_CHECKING([if GnuPG recognizes the --allow-weak-digest-algos flag])
+ AS_IF(["$GPG" --allow-weak-digest-algos --version >/dev/null 2>&1],
+ [GPG_HAS_ALLOW_WEAK_DIGEST_ALGOS_FLAG=1
+ AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])])])
+AC_SUBST([GPG_HAS_ALLOW_WEAK_DIGEST_ALGOS_FLAG])
+ +
dnl Look for a program that takes an ftp URL as a command line argument and
dnl retrieves the file to the current directory. Shame we can't also use
dnl lynx -source; it only writes to stdout. ncftp as of version 3 doesn't

--- a/control/pgpverify.in
+++ b/control/pgpverify.in
@@ -143,8 +143,15 @@
# and the script is able to successfully include your INN::Config module,
# the value of $INN::Config::gpg will override this. On a recent Debian
# variant, use /usr/bin/gpg1 (from the gnupg1 package) if you want to
-# support old signatures with MD5 digest algorithms.
+# support old signatures with MD5 digest algorithms. Or you may want to use
+# a more recent version of GnuPG (2.0.23+), in which case a special flag must
+# be added when running gpg; you then have to set the value of
+# $gpg_has_allow_weak_digest_algos_flag to 1 if --allow-weak-digest-algos is
+# supported, and 0 otherwise. If your INN::Config module has been included,
+# the value of $INN::Config::gpg_has_allow_weak_digest_algos_flag will override
+# this.
# $gpg = '/usr/local/bin/gpg';
+# $gpg_has_allow_weak_digest_algos_flag = 0;

# Path to the GnuPG gpgv binary, if you have GnuPG. If you do, this will
# be used in preference to PGP. For most current control messages, you
@@ -220,7 +227,7 @@ $log_date = -t STDOUT; # Do it if STDOUT is to a terminal.
require 5;

use strict;
-use vars qw($gpg $gpgv $pgp $keyring $tmp $tmpdir $lockdir $syslog_method
- $syslog_facility $syslog_level $log_date $findid $test $messageid);
+use vars qw($gpg $gpg_has_allow_weak_digest_algos_flag $gpgv $pgp $keyring
+ $tmp $tmpdir $lockdir $syslog_method $syslog_facility $syslog_level
+ $log_date $findid $test $messageid);

use Fcntl qw(O_WRONLY O_CREAT O_EXCL);
@@ -243,6 +250,7 @@ $pgp = $INN::Config::pgp
if $INN::Config::pgp && $INN::Config::pgp ne "no-pgp-found-during-configure";
$gpgv = $INN::Config::gpgv if $INN::Config::gpgv;
$gpg = $INN::Config::gpg if $INN::Config::gpg;
+$gpg_has_allow_weak_digest_algos_flag
+ = $INN::Config::gpg_has_allow_weak_digest_algos_flag
+ if $INN::Config::gpg_has_allow_weak_digest_algos_flag;
$tmp = ($INN::Config::pathtmp ? $INN::Config::pathtmp : $tmpdir) . "/pgp$$";
$lockdir = $INN::Config::locks if $INN::Config::locks;
$syslog_facility = $INN::Config::syslog_facility if $INN::Config::syslog_facility;
@@ -462,7 +470,10 @@ sub pgp_verify {
my @command;
if ($pgpstyle eq 'GPG') {
if ($gpg) {
- @command = ($gpg, qw/--verify --allow-weak-digest-algos/);
+ @command = ($gpg, qw/--verify/);
+ if ($gpg_has_allow_weak_digest_algos_flag) {
+ push (@command, qw/--allow-weak-digest-algos/);
+ }
push (@command, qw/--quiet --status-fd=1 --logger-fd=1/);
} else {
@command = ($gpgv, qw/--quiet --status-fd=1 --logger-fd=1/);

--- a/perl/INN/Config.pm.in
+++ b/perl/INN/Config.pm.in
@@ -146,8 +146,9 @@ our $syslog_facility = lc('@SYSLOG_FACILITY@');
$syslog_facility =~ s/log_//;

## Set up some useful parameters.
-my @PARAMVAR = qw($do_dbz_tagged_hash);
+my @PARAMVAR = qw($do_dbz_tagged_hash $gpg_has_allow_weak_digest_algos_flag);
our $do_dbz_tagged_hash = '@DO_DBZ_TAGGED_HASH@';
+our $gpg_has_allow_weak_digest_algos_flag
+ = @GPG_HAS_ALLOW_WEAK_DIGEST_ALGOS_FLAG@;

## Set up some environment values.
if ($ovmethod && $ovmethod eq "ovdb") {

--
Julien ÉLIE

« Il n'y a que le premier pas qui coûte. » (Mme du Deffand)

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<87o7zh762q.fsf@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=818&group=news.software.nntp#818

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!news.eyrie.org!.POSTED!not-for-mail
From: eag...@eyrie.org (Russ Allbery)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Sat, 28 May 2022 13:30:53 -0700
Organization: The Eyrie
Message-ID: <87o7zh762q.fsf@hope.eyrie.org>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org>
<t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com>
<875yltxexv.fsf@hope.eyrie.org> <t6nhlc$1fm8c$1@news.trigofacile.com>
<87v8tsgwzd.fsf@hope.eyrie.org> <t6olgq$1gv2v$1@news.trigofacile.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: hope.eyrie.org;
logging-data="24274"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:JN4ZreHH9E5KCatqmawyUyBVpbY=
 by: Russ Allbery - Sat, 28 May 2022 20:30 UTC

Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Would the following changes correspond to what you had in mind?
> (the patch is not complete, but has the main logic)

> I'll bump the version number of pgpverify to 1.31 if that's OK for you.

Yup, this looks great, that's exactly the sort of thing I was thinking of.
Thank you!

--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>

Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t76m2q$3dtm$1@bwh01.blueworldhosting.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=826&group=news.software.nntp#826

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!.POSTED.023-084-030-207.res.spectrum.com!not-for-mail
From: jesse.re...@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Tue, 31 May 2022 22:23:05 -0500
Organization: BlueWorld Usenet (https://usenet.blueworldhosting.com)
Message-ID: <t76m2q$3dtm$1@bwh01.blueworldhosting.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org>
<t6nhlc$1fm8c$1@news.trigofacile.com> <87v8tsgwzd.fsf@hope.eyrie.org>
<t6olgq$1gv2v$1@news.trigofacile.com> <87o7zh762q.fsf@hope.eyrie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 1 Jun 2022 03:23:06 -0000 (UTC)
Injection-Info: bwh01.blueworldhosting.com; posting-account="jesse"; posting-host="023-084-030-207.res.spectrum.com:23.84.30.207";
logging-data="112566"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:SDjHRWu/p3GKms7nL75QC+r55qA= sha256:HiVZQEFmQsxuveAAkXkpAzlYa4RJdRAI3XX93VkOnNo=
sha1:1QzBpFuuyMl+lm1qc8EEAjj64gQ= sha256:Z6DHoTYgSblyIL84O9u+Zz3H1xt9SJaykMtTxI6M+PU=
Content-Language: en-US
In-Reply-To: <87o7zh762q.fsf@hope.eyrie.org>
 by: Jesse Rehmer - Wed, 1 Jun 2022 03:23 UTC

On 5/28/22 3:30 PM, Russ Allbery wrote:
> Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
>
>> Would the following changes correspond to what you had in mind?
>> (the patch is not complete, but has the main logic)
>
>> I'll bump the version number of pgpverify to 1.31 if that's OK for you.
>
> Yup, this looks great, that's exactly the sort of thing I was thinking of.
> Thank you!
>

Following up on this (in the correct thread this time), I think it
should be better documented that to successfully process the majority of
control articles and NoCeM notices you need GnuPG <2.1.0.

There are multiple references to 1.x and 2.x (see perl-nocem man page,
for example) scattered throughout documentation. Complete removal of
support for PGP-2 keys was done in GnuPG 2.1.0
(https://www.gnupg.org/faq/whats-new-in-2.1.html#nopgp2) regardless of
using the --with-weak-digest-algos flag.

To compound matters, there also exists a potential conflict of gpg/gpgv
binaries and which versions of GnuPG they point to based on
OS/distribution if GnuPG 1.4.x and 2.x packages are installed at the
same time. In the case of CentOS vs FreeBSD with both GnuPG packages
installed, CentOS's gpg and gpgv are symlinks to gpgv2 (so to get GnuPG
1.4 functionality I need to execute gpgv1), but on FreeBSD gpg and gpgv
are the v1 binary. Not sure if it is worth testing for this and
preferring the "gpg1" binary above all else?

Cheers,

Jesse

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<87pmjt9f0z.fsf@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=827&group=news.software.nntp#827

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mail
From: eag...@eyrie.org (Russ Allbery)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Tue, 31 May 2022 21:35:56 -0700
Organization: The Eyrie
Message-ID: <87pmjt9f0z.fsf@hope.eyrie.org>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org>
<t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com>
<875yltxexv.fsf@hope.eyrie.org> <t6nhlc$1fm8c$1@news.trigofacile.com>
<87v8tsgwzd.fsf@hope.eyrie.org> <t6olgq$1gv2v$1@news.trigofacile.com>
<87o7zh762q.fsf@hope.eyrie.org>
<t76m2q$3dtm$1@bwh01.blueworldhosting.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
logging-data="27888"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:daL/upOMpQLTB7bCLdomy9Wo/+E=
 by: Russ Allbery - Wed, 1 Jun 2022 04:35 UTC

Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:

> Following up on this (in the correct thread this time), I think it
> should be better documented that to successfully process the majority of
> control articles and NoCeM notices you need GnuPG <2.1.0.

Yes, that's a good point.

I will say, more generally, there's really no future to this. Almost no
one is going to keep running old versions of GnuPG just for Usenet, nor
should they. The option would be to only use GnuPG 1.4.x, but it's
essentially unmaintained at this point and I would not assume that it will
continue to stick around.

The only long-term solution is for control message issuers to modernize
their software, which in turn is going to require modernizing keys.

But for the upcoming release, I just pushed some updates to INSTALL to try
to capture the version requirements for some control messages.

--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>

Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t78lmd$1rjau$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=831&group=news.software.nntp#831

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!aioe.org!news.gegeweb.eu!gegeweb.org!news.trigofacile.com!.POSTED.176-143-2-105.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 1 Jun 2022 23:28:44 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <t78lmd$1rjau$1@news.trigofacile.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org>
<t6nhlc$1fm8c$1@news.trigofacile.com> <87v8tsgwzd.fsf@hope.eyrie.org>
<t6olgq$1gv2v$1@news.trigofacile.com> <87o7zh762q.fsf@hope.eyrie.org>
<t76m2q$3dtm$1@bwh01.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 1 Jun 2022 21:28:45 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="1953118"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:+LgO29CjZ7j30sRC0RLzZ8CNv4U= sha256:+PtAn3Lcp4qO35PseOVxxlAwt+X6DlgBzlQ3WkCYdvs=
sha1:kjB3i/iQYhrj0pFsWQv26xDfa4c= sha256:tC+ucseM1avIP89YI9olSlDaE4C4Srni2fbhK2bQHRw=
In-Reply-To: <t76m2q$3dtm$1@bwh01.blueworldhosting.com>
 by: Julien ÉLIE - Wed, 1 Jun 2022 21:28 UTC

Hi Jesse,

> Following up on this (in the correct thread this time)

I see that you indeed cancelled your previous message in another thread,
no problem!

> I think it
> should be better documented that to successfully process the majority of
> control articles and NoCeM notices you need GnuPG <2.1.0.

As far as NoCeM notices are concerned, all of the still active issuers
use a modern PGP key, so any version of GnuPG will be fine.
Control articles are the real limitation right now.

> To compound matters, there also exists a potential conflict of gpg/gpgv
> binaries and which versions of GnuPG they point to based on
> OS/distribution if GnuPG 1.4.x and 2.x packages are installed at the
> same time.  In the case of CentOS vs FreeBSD with both GnuPG packages
> installed, CentOS's gpg and gpgv are symlinks to gpgv2 (so to get GnuPG
> 1.4 functionality I need to execute gpgv1), but on FreeBSD gpg and gpgv
> are the v1 binary.  Not sure if it is worth testing for this and
> preferring the "gpg1" binary above all else?

This is already handled by INN at configure time. It checks for the
binary to use in the following order: gpg1, gpg, then gpg2.
So GnuPG 1.x will be selected, if present at configure time.

--
Julien ÉLIE

« Je n'aime pas faire du char-stop ! » (Astérix)

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t78nl2$3sed$1@bwh01.blueworldhosting.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=833&group=news.software.nntp#833

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!.POSTED.023-084-030-207.res.spectrum.com!not-for-mail
From: jesse.re...@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Wed, 1 Jun 2022 17:02:10 -0500
Organization: BlueWorld Usenet (https://usenet.blueworldhosting.com)
Message-ID: <t78nl2$3sed$1@bwh01.blueworldhosting.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org>
<t6nhlc$1fm8c$1@news.trigofacile.com> <87v8tsgwzd.fsf@hope.eyrie.org>
<t6olgq$1gv2v$1@news.trigofacile.com> <87o7zh762q.fsf@hope.eyrie.org>
<t76m2q$3dtm$1@bwh01.blueworldhosting.com>
<t78lmd$1rjau$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 1 Jun 2022 22:02:10 -0000 (UTC)
Injection-Info: bwh01.blueworldhosting.com; posting-account="jesse"; posting-host="023-084-030-207.res.spectrum.com:23.84.30.207";
logging-data="127437"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.10.0
Cancel-Lock: sha1:kR/a+9lviNdf0lxGodTtKtkEtLE= sha256:UW4tUrcO+M4M71c7fLnP5AaVLLqUrKrZ+d4BP7s99PU=
sha1:Wt+SOnZrFLwAyFA43sEkwklFgec= sha256:UCrV8+MWGsl3i/wyOypdr4EJml915yXsgA2OJrgTd7w=
Content-Language: en-US
In-Reply-To: <t78lmd$1rjau$1@news.trigofacile.com>
 by: Jesse Rehmer - Wed, 1 Jun 2022 22:02 UTC

On 6/1/22 4:28 PM, Julien ÉLIE wrote:
>
> This is already handled by INN at configure time.  It checks for the
> binary to use in the following order:  gpg1, gpg, then gpg2.
> So GnuPG 1.x will be selected, if present at configure time.
>

Thank you, I forget many of these items are set from configure. Since
initially I had only the gnupg2 package installed when I built INN, I
understand I may need to re-configure/compile/update now.

Thanks again, Julien!

Cheers,

Jesse

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

<t7asr2$1t379$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=838&group=news.software.nntp#838

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Thu, 2 Jun 2022 19:42:58 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <t7asr2$1t379$1@news.trigofacile.com>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com>
<87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com>
<87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org>
<t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org>
<t6nhlc$1fm8c$1@news.trigofacile.com> <87v8tsgwzd.fsf@hope.eyrie.org>
<t6olgq$1gv2v$1@news.trigofacile.com> <87o7zh762q.fsf@hope.eyrie.org>
<t76m2q$3dtm$1@bwh01.blueworldhosting.com>
<t78lmd$1rjau$1@news.trigofacile.com>
<t78nl2$3sed$1@bwh01.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 2 Jun 2022 17:42:58 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105";
logging-data="2002153"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Cancel-Lock: sha1:uQE7eeMN4A/iHAMPWNU7S6KRprM= sha256:/FCkFTeyQbnU5vpzFOsbF3iCqOwb50GT6K1Vy49lioI=
sha1:6b3DPtKDSpTfCiUiQ4Z5urXMQwA= sha256:S4vSfq6ZNb1BGy0GIJ2lXj78d2v/zbnoAGQg4pOEpHU=
In-Reply-To: <t78nl2$3sed$1@bwh01.blueworldhosting.com>
 by: Julien ÉLIE - Thu, 2 Jun 2022 17:42 UTC

Hi Jesse,

>> This is already handled by INN at configure time.  It checks for the
>> binary to use in the following order:  gpg1, gpg, then gpg2.
>> So GnuPG 1.x will be selected, if present at configure time.
>
> Thank you, I forget many of these items are set from configure.  Since
> initially I had only the gnupg2 package installed when I built INN, I
> understand I may need to re-configure/compile/update now.

Re-configuring/compiling/updating would work, yes.
More quickly, you can simply change the variables in
<pathlib>/perl/INN/Config.pm or whatever location you have for that file:

our $gpgv = '/usr/bin/gpgv1';
our $gpg = '/usr/bin/gpg1';

And of course make sure gpg1 has the keys in its ring.

--
Julien ÉLIE

« Pour une personne optimiste, le verre est à moitié plein. Pour une
personne pessimiste, il est à moitié vide. Pour l'informaticien, il
est deux fois plus grand que nécessaire. »

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor