Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


computers / news.admin.hierarchies / Re: Upgrading/changing from PGP to GnuPG for nl.*

SubjectAuthor
* Upgrading/changing from PGP to GnuPG for nl.*Adri Verhoef
`* Re: Upgrading/changing from PGP to GnuPG for nl.*Julien ÉLIE
 +- Re: Upgrading/changing from PGP to GnuPG for nl.*Julien ÉLIE
 +- Re: Upgrading/changing from PGP to GnuPG for nl.*Adri Verhoef
 `* Re: Upgrading/changing from PGP to GnuPG for nl.*Adri Verhoef
  `* Re: Upgrading/changing from PGP to GnuPG for nl.*Julien ÉLIE
   `- Re: Upgrading/changing from PGP to GnuPG for nl.*Adri Verhoef

1
Upgrading/changing from PGP to GnuPG for nl.*

<sCIsAw.qvz0@a3.nl.invalid>

  copy mid

https://rocksolidbbs.com/computers/article-flat.php?id=309&group=news.admin.hierarchies#309

  copy link   Newsgroups: news.admin.hierarchies
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: a3@a3.nl.invalid (Adri Verhoef)
Newsgroups: news.admin.hierarchies
Subject: Upgrading/changing from PGP to GnuPG for nl.*
Date: Thu, 25 Apr 2024 22:40:08 GMT
Organization: A3, The Netherlands
Lines: 40
Message-ID: <sCIsAw.qvz0@a3.nl.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 26 Apr 2024 01:09:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7fcd1a7ea22a0ace8b625b787374b27a";
logging-data="3434913"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kXr3zhze8XaLPVyy2lqRvlVyB5lPfFN8="
Cancel-Lock: sha1:6JKMbgWase+nFfu9fxmkJd/Xm1U=
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
X-Editor: Vim
 by: Adri Verhoef - Thu, 25 Apr 2024 22:40 UTC

Hi, Julien invited me to join news.admin.hierarchies.

As administrator for nl.* I'm still using PGP-2 and that doesn't seem to
do its work anymore on a modern Fedora 40 system without 32-bit libraries.
$ file /usr/local/bin/pgp
/usr/local/bin/pgp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, stripped
$ readelf -a /usr/local/bin/pgp | grep NEEDED
0x00000001 (NEEDED) Shared library: [libc.so.6]
$ rpm -qa | grep i686 | wc -l
0
$ dnf provides /lib/libc.so.6 | grep x86_64
glibc32-2.39-8.fc40.x86_64 : The GNU libc libraries (32-bit)

In the past I've compiled PGP-2.6.3is myself and configured 'signcontrol' for
the nl-hierarchy. It doesn't compile anymore, not necessarily a disaster, as
we will see.

Now I could go ahead and install the necessary compatible libraries for PGP,
but there's also the option of moving to a more modern approach and the use of
GnuPG:
$ rpm -q gnupg2
gnupg2-2.4.4-1.fc40.x86_64

Before I can use GPG in the Usenet-hierarchy 'nl' I need to register its key
and this is probably the first thing that I should do. Where do I do that?
Before registering I also need to generate the new key. How do I do that?

A step-by-step-approach works best for me as I don't want to make any fatal
mistakes.

The next thing to do is probably configuring a new 'signcontrol' (Perl) and
getting that new 'signcontrol' to work. Julien already pointed me to
https://ftp.isc.org/pub/pgpcontrol/signcontrol and there's much resemblance
to my version from 1998. I've made some local changes there to accommodate
a few particular needs for nl.* (in 2002). The version from 1998 is v1.6.

From 1.9: "# -- Fix error reporting around lock files with PGP." - was that
the error that I fixed in 2002? :-) [variable $lock vs. $pgplock]

Adri

Re: Upgrading/changing from PGP to GnuPG for nl.*

<v0fv1o$62di$1@news.trigofacile.com>

  copy mid

https://rocksolidbbs.com/computers/article-flat.php?id=310&group=news.admin.hierarchies#310

  copy link   Newsgroups: news.admin.hierarchies
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!news.trigofacile.com!.POSTED.2a01cb080adc110081ee0d1e5b702692.ipv6.abo.wanadoo.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.admin.hierarchies
Subject: Re: Upgrading/changing from PGP to GnuPG for nl.*
Date: Fri, 26 Apr 2024 12:18:31 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <v0fv1o$62di$1@news.trigofacile.com>
References: <sCIsAw.qvz0@a3.nl.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 26 Apr 2024 10:18:32 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080adc110081ee0d1e5b702692.ipv6.abo.wanadoo.fr:2a01:cb08:adc:1100:81ee:d1e:5b70:2692";
logging-data="199090"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:RAiHJFJiWC14/AxS5Y1WlUvZ2Xs= sha256:69+Crcs9+zBWxPKpXkLmB9rHxaOcbGX7rqKqz2mMyeY=
sha1:QJS8lHx/ehe2gm7t8yOgPOy2JsY= sha256:8NNHNzqtuAhRLStnRtTWLSGFCCN4CvdPktG/kqgKkIQ=
In-Reply-To: <sCIsAw.qvz0@a3.nl.invalid>
 by: Julien ÉLIE - Fri, 26 Apr 2024 10:18 UTC

Hi Adri,

> Now I could go ahead and install the necessary compatible libraries for PGP,
> but there's also the option of moving to a more modern approach and the use of
> GnuPG:
> $ rpm -q gnupg2
> gnupg2-2.4.4-1.fc40.x86_64

The last control article sent with your PGP-2 key dates back to 2017
(changing the description of nl.scientology).

I also reckon that moving to a more modern approach is the right thing
to do, in a long-term perspective.
It implies a change of key. As it seems that you won't be sending
control articles in double (signed with both the old PGP-2 key and the
new one), the drawback is that only the news servers that have imported
your new public key will honour your control articles from now on.
It's not critical as it may well happen that the current PGP-2 key is
already not recognized by some (not saying most) servers carrying nl.*!

> Before I can use GPG in the Usenet-hierarchy 'nl' I need to register its key
> and this is probably the first thing that I should do. Where do I do that?
> Before registering I also need to generate the new key. How do I do that?
>
> A step-by-step-approach works best for me as I don't want to make any fatal
> mistakes.

About the registration of the new key in PGPKEYS at
<https://ftp.isc.org/pub/pgpcontrol/> so that the subsequent control
articles are taken into account in the ftp.isc.org active and newsgroups
file at <https://ftp.isc.org/pub/usenet/CONFIG/>, just advertising it
here will be enough. Russ will do the necessary stuff to integrate it
into the software which generates the ftp.isc.org files.

It is also time to ask for an update, if needed, of the control.ctl
information (contact, URL) related to your hierarchy:
http://usenet.trigofacile.com/hierarchies/nl.html

About the generation of the new key, I would suggest a 3072-bit or
4096-bit RSA key which *never expires*.
(RSA is widely supported by GnuPG versions in wild, contrary to ECDSA
which may not be recognized by a bit older versions.)

When asked by GnuPG during the generation of the key, put the e-mail
address from which you will send control articles in the key ID (the
real name field), and leave the other fields blank, for better
compatibility with Usenet software.

The command I used to generate the key for fr.* is "gpg
--full-generate-key --allow-freeform-uid", and then answer the questions
with the above recommendations in mind.

After having generated the private and public keys, you should export
your PUBLIC key and make it available from the web site of your
hierarchy, and also announce it in news.admin.hierarchies.

> The next thing to do is probably configuring a new 'signcontrol' (Perl) and
> getting that new 'signcontrol' to work. Julien already pointed me to
> https://ftp.isc.org/pub/pgpcontrol/signcontrol and there's much resemblance
> to my version from 1998.

Sure, feel free to use this Perl version of signcontrol :)

--
Julien ÉLIE

« Je ne suis ni pour ni contre, bien au contraire ! » (Coluche)

Re: Upgrading/changing from PGP to GnuPG for nl.*

<v0g0jb$62dj$1@news.trigofacile.com>

  copy mid

https://rocksolidbbs.com/computers/article-flat.php?id=311&group=news.admin.hierarchies#311

  copy link   Newsgroups: news.admin.hierarchies
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!news.trigofacile.com!.POSTED.2a01cb080adc110081ee0d1e5b702692.ipv6.abo.wanadoo.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.admin.hierarchies
Subject: Re: Upgrading/changing from PGP to GnuPG for nl.*
Date: Fri, 26 Apr 2024 12:44:59 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <v0g0jb$62dj$1@news.trigofacile.com>
References: <sCIsAw.qvz0@a3.nl.invalid> <v0fv1o$62di$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 26 Apr 2024 10:45:00 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080adc110081ee0d1e5b702692.ipv6.abo.wanadoo.fr:2a01:cb08:adc:1100:81ee:d1e:5b70:2692";
logging-data="199091"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:GMV/png7ssfqi565CpEnDexyD5A= sha256:AgYYKPdXHI9ZKQ9C4Xn4bOtGkFHurafvH57Idvl3Wp8=
sha1:fe/okP9S7j6kqA15DoGPYn/h+qc= sha256:Gf99td1zPSUxUKYMVbjB3sYrTgAQ486rA0uh61JUaq4=
In-Reply-To: <v0fv1o$62di$1@news.trigofacile.com>
 by: Julien ÉLIE - Fri, 26 Apr 2024 10:44 UTC

Adding to my previous message:

> When asked by GnuPG during the generation of the key, put the e-mail
> address from which you will send control articles in the key ID (the
> real name field)

Hmm, as your current PGP-2 key uses "nl.newsgroups" as key ID, and it is
also your current control.ctl entry ("verify-nl.newsgroups"), just keep
that for your new key and do not use an e-mail adress.

I said that because some other control.ctl entries use an e-mail, but
that's not the case for nl.*.

--
Julien ÉLIE

« – Quel a été votre plus beau jour ?
– Une nuit. » (Brigitte Bardot)

Re: Upgrading/changing from PGP to GnuPG for nl.*

<sCK8yM.srJD@a3.nl.invalid>

  copy mid

https://rocksolidbbs.com/computers/article-flat.php?id=312&group=news.admin.hierarchies#312

  copy link   Newsgroups: news.admin.hierarchies
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: a3@a3.nl.invalid (Adri Verhoef)
Newsgroups: news.admin.hierarchies
Subject: Re: Upgrading/changing from PGP to GnuPG for nl.*
Date: Fri, 26 Apr 2024 17:37:34 GMT
Organization: A3, The Netherlands
Lines: 36
Message-ID: <sCK8yM.srJD@a3.nl.invalid>
References: <sCIsAw.qvz0@a3.nl.invalid> <v0fv1o$62di$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 26 Apr 2024 20:09:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7fcd1a7ea22a0ace8b625b787374b27a";
logging-data="4037507"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SKOSJdsGL+KqwuGRIIxLEmtOGe3HWlnI="
Cancel-Lock: sha1:vXn8QfejXmgjMYMdVQATTGRaTK4=
X-Editor: Vim
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
 by: Adri Verhoef - Fri, 26 Apr 2024 17:37 UTC

Julien, thanks for answering. After reading your response, I spotted:

>After having generated the private and public keys, you should export
>your PUBLIC key and make it available from the web site of your
>hierarchy, and also announce it in news.admin.hierarchies.

There's a small problem, the website that we used (http://nl.news-admin.org/)
exists, but it is out of date and I think there is nobody who has the keys as
far as I can tell, also I don't know what happened to it, since I'm wondering
what "ausadmin" and a proposal for "aus.radio.amateur.dstar" is doing there,
and when you click that last proposal you'll get: "Software error:
Expected /home/ausadmin/vote/aus.radio.amateur.dstar/vote_start.cfg at
/home/ausadmin/perllib/Vote.pm line 125.
For help, please send mail to the webmaster ([no address given]), giving this
^^^^^^^^^^^^^^^^^^
error message and the time and date of the error."

To give you an idea why the list of newsgroups there is somewhat out of date:
"nl.actueel" is missing (created in 2015), nl.erotiek.* was removed in 2009.

At some point in time (2011) we decided to create e-mailaddresses at stack.nl
instead of nic.surfnet.nl, to administrate the nl-hierarchy, but they seem to
be revoked ("<nl-admin@stack.nl>: Recipient address rejected: User unknown").

At this moment I guess we (the administrators of nl.*) don't have an official
e-mailaddress, that is what can be concluded. The administrative role, named
nl-admin, consisted of two persons since 2007, Adri Verhoef (=me) & Johan van
Selst; later on, a council was added called 'nl-raad', that consisted of five
persons, including nl-admin. This was reduced to four persons in early 2022,
when Bart Dinnissen stepped down for health reasons; he died later that year.
Johan has an e-mailaddress at stack.nl, obviously he was involved in creation
of the administrative e-mailaddresses at stack.nl, amongst them were nl-admin
and nl-raad, see http://lists.stack.nl/hyperkitty/ - deselect 'Hide inactive'
- they are archived.

UPDATE: Right now I am in contact with Johan again!

Re: Upgrading/changing from PGP to GnuPG for nl.*

<sCnK64.wwA3@a3.nl.invalid>

  copy mid

https://rocksolidbbs.com/computers/article-flat.php?id=313&group=news.admin.hierarchies#313

  copy link   Newsgroups: news.admin.hierarchies
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: a3@a3.nl.invalid (Adri Verhoef)
Newsgroups: news.admin.hierarchies
Subject: Re: Upgrading/changing from PGP to GnuPG for nl.*
Date: Sun, 28 Apr 2024 12:32:28 GMT
Organization: A3, The Netherlands
Lines: 268
Message-ID: <sCnK64.wwA3@a3.nl.invalid>
References: <sCIsAw.qvz0@a3.nl.invalid> <v0fv1o$62di$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 28 Apr 2024 15:09:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f32c380dc1b0a4224b267d5a3f23e78e";
logging-data="1125988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191U1pcfB5FOKviRUkofmk4aTqZQiUzGh4="
Cancel-Lock: sha1:g1aNU9VA6rykYn2kZk8UqpAWg0M=
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
X-Editor: Vim
 by: Adri Verhoef - Sun, 28 Apr 2024 12:32 UTC

Julien,

At the moment I'm testing my scripts; I've successfully configured GnuPG
(at least I think so).

I've added some small improvements in version 1.9 of 'signcontrol':

106c106
< # $use_or_add{'Oranization'} = 'YOUR_ORGANIZATION';
---
> # $use_or_add{'Organization'} = 'YOUR_ORGANIZATION';
150c150
< # set to match only hierarchies you will use it on
---
> # set to match only hierarchies you will use it on.

Apart from that, I used: my $id_host = `cat ~/mailname`; in my configuration.
Also, I've been playing around with signcontrol-1.9, configuring it some more,
then was unsuccessful getting it to work:

Most probably there was a need for me to add a variable "$pgphomedir" to point
to the correct directory with the secret key, else I would get:
gpg: skipped "nl.newsgroups": No secret key

This is what I've added:

my $pgp = "/usr/bin/gpg";
# From the directory where signcontrol is called we need to find the secret key
# if that key isn't situated in the homedirectory of the caller.
my $pgphomedir = ".gnupg"; # absolute path or directory relative to current one

However, this wasn't enough. My 'gpg' on Fedora 40, gnupg2-2.4.4-1.fc40.x86_64,
doesn't accept the "--pgp2" parameter: gpg: invalid option "--pgp2"

Furthermore, I'm getting: gpg: signing failed: Inappropriate ioctl for device

So, this is what I have now in my version of the code of 'signcontrol':

} elsif ($pgpstyle eq 'GPG') {
if ($pgphomedir) {
# we need a way to add some extra arguments
@command = ($pgp, qw/--detach-sign --armor --textmode -u/, $keyid,
qw/--debug-level advanced/,
qw/--homedir/, $pgphomedir,
qw/--force-v3-sigs/);
} else {
@command = ($pgp, qw/--detach-sign --armor --textmode -u/, $keyid,
qw/--force-v3-sigs --pgp2/);
}
} else {

When I run "./checkgroups -t nl | head" I get:

Newsgroups: nl.newsgroups
Subject: cmsg checkgroups
Control: checkgroups

nl.actueel Discussie over nieuws met grote maatschappelijke impact.
(etc.)

This is fine for now, but when I run "./checkgroups -t nl | head |./signcontrol"
I get:

gpg: enabled debug flags: memstat trust extprog
gpg: enabled compatibility flags:
gpg: no running gpg-agent - starting '/usr/bin/gpg-agent'
gpg: waiting for the agent to come up ... (5s)
gpg: connection to the agent established
gpg: writing to stdout
gpg: pinentry launched (1480141 gnome3:curses 1.3.0-unknown - xterm-256color :0.0 - 9/13 0)
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
gpg: keydb: handles=1 locks=0 parse=1 get=1
gpg: build=0 update=0 insert=0 delete=0
gpg: reset=0 found=1 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=2 cached=0 good=0 bad=0
gpg: objcache: keys=2/2/0 chains=381,1..1 buckets=383/20 attic=254
gpg: objcache: uids=1/1/0 chains=106,1..1 buckets=107/20
gpg: random usage: poolsize=600 mixed=1 polls=0/3 added=18/720
outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: secmem usage: 1568/65536 bytes in 3 blocks
/usr/bin/gpg returned exit status 512

signcontrol: could not generate signature

According to https://github.com/keybase/keybase-issues/issues/2798 inserting
"export GPG_TTY=$(tty)" is the solution, but when I do that I get 'not a tty':

$ ./checkgroups -t nl | head | GPG_TTY=$(tty) ./signcontrol
gpg: enabled debug flags: memstat trust extprog
gpg: enabled compatibility flags:
gpg: writing to stdout
gpg: pinentry launched (1519899 gnome3:curses 1.3.0-unknown not a tty xterm-256color :0.0 ? 9/13 0)
gpg: signing failed: No such file or directory
gpg: signing failed: No such file or directory
gpg: keydb: handles=1 locks=0 parse=1 get=1
gpg: build=0 update=0 insert=0 delete=0
gpg: reset=0 found=1 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=2 cached=0 good=0 bad=0
gpg: objcache: keys=2/2/0 chains=381,1..1 buckets=383/20 attic=254
gpg: objcache: uids=1/1/0 chains=106,1..1 buckets=107/20
gpg: random usage: poolsize=600 mixed=1 polls=0/3 added=18/720
outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: secmem usage: 1568/65536 bytes in 3 blocks
/usr/bin/gpg returned exit status 512

signcontrol: could not generate signature

In my configuration, signcontrol needs to be run from crontab in the night,
I don't do that by hand.

Another solution from https://github.com/keybase/keybase-issues/issues/2798 is
pointing to https://d.sb/2016/11/gpg-inappropriate-ioctl-for-device-errors:

| To solve the problem, you need to enable loopback pinentry mode. Add this to ~/.gnupg/gpg.conf:
|
| use-agent
| pinentry-mode loopback
|
| And add this to ~/.gnupg/gpg-agent.conf, creating the file if it doesn't already exist:
|
| allow-loopback-pinentry
|
| Then restart the agent with echo RELOADAGENT | gpg-connect-agent and you should be good to go!

In my case I needed to restart the agent with:
echo RELOADAGENT | gpg-connect-agent --homedir [full_path_to_directory/.gnupg]

Now there is a little bit of a big success!

$ ./checkgroups -t nl | head | ./signcontrol
Use of uninitialized value $version in pattern match (m//) at ./signcontrol line 552.
Use of uninitialized value $version in concatenation (.) or string at ./signcontrol line 556.
Path: bounce-back
From: nl-admin@stack.nl
Newsgroups: nl.newsgroups
Subject: cmsg checkgroups
Control: checkgroups
Approved: nl-admin@stack.nl
Message-ID: <1714299176.1522958@a3.nl.invalid>
Date: Sun, 28 Apr 2024 10:12:56 -0000
Lines: 6
X-Info: https://ftp.isc.org/pub/pgpcontrol/README.html" rel="nofollow" target="_blank">https://ftp.isc.org/pub/pgpcontrol/README.html
https://ftp.isc.org/pub/pgpcontrol/README
X-PGP-Sig: Subject,Control,Message-ID,Date,From,Sender
iQIzBAEBCAAdFiEEZvvoTIDjctRUf+kh0vJZXdpaxQQFAmYuISgACgkQ0vJZXdpa
xQT5mRAAlpYTP6ZUSqnojH/kJmhdc+9EGprF/D56XFQ/zB9IRyHvFPPCyso/TAhm
5RyeGlz/9JKyQLXEKeE+Qko5SXA03jcMBsTKqa6XpP5DFhy+1aqJIyhYpiLXklaf
SJc5wV75lQ4Aub6BRJJj4wh2ZjCF8EpaKWl1B4rkeV4A1ffIWDSP/q0uEExGiFkS
EXbP48Mi5nEqSn+pJryD+POHhe+GKvQ+B/oSS9d9bcMe8+/wy+VlMyVGVLnwgr3e
bvAHAtFADDjTiXiTSloM/uQYxyMabo0O2pCH11iG7Ggb7u1VHexMZhbL37CDn3or
Z/PUHcTBef6QMrMu6UY7Vosz7DAcjjSBtPHf2SsiBhaDTZG0kD2Z46NPeSBjS11/
FxtHJmCWsrXqabMYgxmNMAgiZbGTARJAPVCz/32dtQb9rm0jBVJSImKUXnhwgs76
JaFB9xZyF2C2RW6TMXEN1Eg44+BnBJrkzcNSneLiXX5WoaO/rVCbbB6Nzn3hnAhV
oji7+avuCloUi8nwVtL8o9a54usYF4Ej4omDovK5+RJM+/olpJdMfJCh6sZwYYwe
Of4yEsvqeTe6ArRlsR1eN29QacQoDGWuJgEQ0ANm/sapD6d8gr1tu7RuDVhwdgUZ
KyUaveIgyaoWntgL9fYVG/ODtNq/k+xKA+pIIx2MEIhTuKZ2sf0=
=u+UU

nl.actueel Discussie over nieuws met grote maatschappelijke impact.
nl.announce Aankondigingen conferenties, cursussen, enz. (Moderated)
nl.auto Aankondigingen, modellen, techniek, tips en discussie.
nl.burgerrechten Informatiemaatschappij en burgerbelangen.
nl.comp.3d-printen Alles over 3D-printen.
nl.comp.dvd-branden Over het maken en branden van dvd's.

In this part, $version doesn't get assigned with GnuPG's version:

while ($signature[0] ne "\n" && @signature) {
$version = $1 if ((shift @signature) =~ /^Version:\s+(.*?)\s*$/);
}

But 'gpg' does report its version. Here is some of my output if that helps:

$ gpg --version
gpg (GnuPG) 2.4.4
libgcrypt 1.10.3-unknown
Copyright (C) 2024 g10 Code GmbH

To get rid of the 'uninitialized value' I used a stub: my $version = "0.stub";
Unless someone has a (better) fix for this ...

In finishing, I've changed the part where $pgphomedir is studied, using #DEBUG#,
and also omitted --pgp2:

if ($pgphomedir) {
# we need a way to add some extra arguments
@command = ($pgp, qw/--detach-sign --armor --textmode -u/, $keyid,
##DEBUG## qw/--debug-level advanced/,
qw/--homedir/, $pgphomedir,
qw/--force-v3-sigs/);
} else {

>About the registration of the new key in PGPKEYS at
><https://ftp.isc.org/pub/pgpcontrol/> so that the subsequent control
>articles are taken into account in the ftp.isc.org active and newsgroups
>file at <https://ftp.isc.org/pub/usenet/CONFIG/>, just advertising it
>here will be enough. Russ will do the necessary stuff to integrate it
>into the software which generates the ftp.isc.org files.

As I haven't advertised it yet, I'm gonna go ahead right now:

$ gpg --homedir .gnupg --dry-run --list-keys
..../news/.gnupg/pubring.kbx
------------------------------------
pub rsa4096 2024-04-27 [SC]
66FBE84C80E372D4547FE921D2F2595DDA5AC504
uid [ultimate] nl.newsgroups
sub rsa4096 2024-04-27 [E]

$ gpg --homedir .gnupg --dry-run --list-keys --fingerprint
..../news/.gnupg/pubring.kbx
------------------------------------
pub rsa4096 2024-04-27 [SC]
66FB E84C 80E3 72D4 547F E921 D2F2 595D DA5A C504
uid [ultimate] nl.newsgroups
sub rsa4096 2024-04-27 [E]


Click here to read the complete article
Re: Upgrading/changing from PGP to GnuPG for nl.*

<v0o2j7$bvvl$1@news.trigofacile.com>

  copy mid

https://rocksolidbbs.com/computers/article-flat.php?id=314&group=news.admin.hierarchies#314

  copy link   Newsgroups: news.admin.hierarchies
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!news.trigofacile.com!.POSTED.2a01cb080adc11009d45e80d7e3d47f4.ipv6.abo.wanadoo.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.admin.hierarchies
Subject: Re: Upgrading/changing from PGP to GnuPG for nl.*
Date: Mon, 29 Apr 2024 14:08:07 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <v0o2j7$bvvl$1@news.trigofacile.com>
References: <sCIsAw.qvz0@a3.nl.invalid> <v0fv1o$62di$1@news.trigofacile.com>
<sCnK64.wwA3@a3.nl.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 29 Apr 2024 12:08:07 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080adc11009d45e80d7e3d47f4.ipv6.abo.wanadoo.fr:2a01:cb08:adc:1100:9d45:e80d:7e3d:47f4";
logging-data="393205"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+LvGJ9Iq+jGalzpKySwnLL0LTRU= sha256:RlWZUG8UeLPqVmEHzht3bJ0nJhIw9Msmvb45DbvolKo=
sha1:+9Opy7P0FZOZDi7YuX/RdphTu8I= sha256:8u5XPq+VDlcSV9iaah77DccVQUz5LDim0fbYqXqoBIk=
In-Reply-To: <sCnK64.wwA3@a3.nl.invalid>
 by: Julien ÉLIE - Mon, 29 Apr 2024 12:08 UTC

Hi Adri,

> I've added some small improvements in version 1.9 of 'signcontrol':

That sounds gound. Hopefully it will be helpful to other news admins
who will set it up in the future.

> So, this is what I have now in my version of the code of 'signcontrol':
>
> } elsif ($pgpstyle eq 'GPG') {
> if ($pgphomedir) {
> # we need a way to add some extra arguments
> @command = ($pgp, qw/--detach-sign --armor --textmode -u/, $keyid,
> qw/--debug-level advanced/,
> qw/--homedir/, $pgphomedir,
> qw/--force-v3-sigs/);
> } else {
> @command = ($pgp, qw/--detach-sign --armor --textmode -u/, $keyid,
> qw/--force-v3-sigs --pgp2/);
> }
> } else {

Looking at the flags used by signcontrol.py, it also has:
--emit-version --no-comments --no-escape-from-lines --no-throw-keyids

You may wish to also use them. At least the first one (--emit-version)
solves one of your subsequent question.

> | To solve the problem, you need to enable loopback pinentry mode. Add this to ~/.gnupg/gpg.conf:
> |
> | use-agent
> | pinentry-mode loopback
> |
> | And add this to ~/.gnupg/gpg-agent.conf, creating the file if it doesn't already exist:
> |
> | allow-loopback-pinentry
> |
> | Then restart the agent with echo RELOADAGENT | gpg-connect-agent and you should be good to go!

Indeed, this is a necessary setup if you run the script non
interactively. Maybe you'll also need:
--no-tty --passphrase "xxx"

Matija Nalis, the former administrator of hr.* (Croatia), once asked for
these flags. I don't know whether they are still required by current
GnuPG versions.

> X-Info: https://ftp.isc.org/pub/pgpcontrol/README.html" rel="nofollow" target="_blank">https://ftp.isc.org/pub/pgpcontrol/README.html
> https://ftp.isc.org/pub/pgpcontrol/README

You may want to keep one, and replace the other one with the URL of the
website of the hierarchy.

> Did I do this correctly?

I think so.

> The URL-part isn't correct yet; this is what I have now in my control.ctl:
>
> ## NL (Netherlands)
> # Contact: nl-admin@stack.nl
> # URL: http://nl.news-admin.org/info/nladmin.html
> # Admin group: nl.newsgroups
> # Key fingerprint: 45 20 0B D5 A1 21 EA 7C EF B2 95 6C 25 75 4D 27
> # *PGP* See comment at top of file.
> newgroup:*:nl.*:drop
> rmgroup:*:nl.*:drop
> checkgroups:nl-admin@stack.nl:nl.*:verify-nl.newsgroups
> newgroup:nl-admin@stack.nl:nl.*:verify-nl.newsgroups
> rmgroup:nl-admin@stack.nl:nl.*:verify-nl.newsgroups

The official control.ctl entry will then need being updated with these
new information (stack.nl instead of nic.surfnet.nl).
Also, the new key fingerprint is:
66FB E84C 80E3 72D4 547F E921 D2F2 595D DA5A C504

> BTW, I'm running C News. :-)

For C News, from what I heard, it uses a file named controlperm. Does
it also handle the control.ctl syntax? Do you confirm a valid syntax
for controlperm would now be:

nl any n nq
nl any r nq
nl nl-admin@stack.nl c pv nl.newsgroups
nl nl-admin@stack.nl n pv nl.newsgroups
nl nl-admin@stack.nl r pv nl.newsgroups

> Hopefully I've done all this correctly.
The technical part is now done.
What will now takes (a long) time is the update of the configuration of
news servers carrying nl.*. It may be worthwhile contacting the news
admins of the most used servers for article postings in the nl.* hierarchy.
It is what we did for the fr.* hierarchy, after having done some stats
about that (from the Path header fields of posts in fr.*).

--
Julien ÉLIE

« Omnia uincit Amor et nos cedamus Amori. » (Virgile)

Re: Upgrading/changing from PGP to GnuPG for nl.*

<sCpz82.1051y@a3.nl.invalid>

  copy mid

https://rocksolidbbs.com/computers/article-flat.php?id=315&group=news.admin.hierarchies#315

  copy link   Newsgroups: news.admin.hierarchies
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: a3@a3.nl.invalid (Adri Verhoef)
Newsgroups: news.admin.hierarchies
Subject: Re: Upgrading/changing from PGP to GnuPG for nl.*
Date: Mon, 29 Apr 2024 19:52:50 GMT
Organization: A3, The Netherlands
Lines: 7
Message-ID: <sCpz82.1051y@a3.nl.invalid>
References: <sCIsAw.qvz0@a3.nl.invalid> <v0fv1o$62di$1@news.trigofacile.com> <sCnK64.wwA3@a3.nl.invalid> <v0o2j7$bvvl$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 29 Apr 2024 22:09:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="80afb82badaa45733b2b01132769c331";
logging-data="2056211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19w6xERQ1xgqFt+kNcRxxXl+oebljOCTKY="
Cancel-Lock: sha1:A1uXOj++p2n8yGWOF1e7XiCRPdI=
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
X-Editor: Vim
 by: Adri Verhoef - Mon, 29 Apr 2024 19:52 UTC

Thanks for answering, Julien.
For now, things have to wait.
Last weekend was a busy one and I will be away for about a week or two.
See you later! Thanks again.
I have to catch my train. :-)

Adri


computers / news.admin.hierarchies / Re: Upgrading/changing from PGP to GnuPG for nl.*

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor