🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Russ Allbery Thu, 06 Aug 1998 00:00
Problem with pgpverify and fr.* control messages
#30307
Author: Russ Allbery
Date: Thu, 06 Aug 1998 00:00
36 lines
2180 bytes
[ Posted to news.software.nntp and news.admin.hierarchies and mailed to
  Control <control@usenet-fr.news.eu.org>.]

Hey folks,

The current way in which fr.* newgroup/rmgroup messages are signed will
not work correctly with the version of pgpverify that I have.  I'm not
sure if this is fixed in a newer version (I'm a few versions behind, but I
was under the impression that there were only PGP v5 fixes), but that at
least means that it's not working for a reasonable amount of the installed
base.

The problem is that the key ID that fr.* control messages are currently
being signed with is:

        Control <control@usenet-fr.news.eu.org>

pgpverify does an *exact match* with the string in control.ctl, which
means that this is never going to work because one can't embed spaces into
control.ctl that I know of.  This is the reason why most hierarchy control
messages are generated using key IDs that are just simple newsgroup names.

The given instructions, to use verify-control@usenet-fr.news.eu.org, will
not work with that key ID since "control@usenet-fr.news.eu.org" is not
equal to "Control <control@usenet-fr.news.eu.org>".  The result is that
the newgroup/rmgroup messages get mailed even if the instruction in
control.ctl is doit.

My recommendation would be to just start signing the messages with the key
ID "fr.usenet.forums.annonces" which is already on the same public key and
won't have this problem.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Problem with pgpverify and fr.* control messages
#30331
Author: Andrew Gierth
Date: Fri, 07 Aug 1998 00:00
57 lines
2965 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 Russ> [ Posted to news.software.nntp and news.admin.hierarchies and
 Russ> mailed to Control <control@usenet-fr.news.eu.org>.]

 Russ> Hey folks,

 Russ> The current way in which fr.* newgroup/rmgroup messages are
 Russ> signed will not work correctly with the version of pgpverify
 Russ> that I have.

The problem is not so much with the way the messages are signed, but
with the distributed public key.

 Russ> My recommendation would be to just start signing the messages
 Russ> with the key ID "fr.usenet.forums.annonces" which is already on
 Russ> the same public key and won't have this problem.

You misunderstand the way that PGP works. Messages are not signed with
a specific user ID, they're signed with a specific *key ID*. The user
ID returned when a signature is verified is taken from the public key
held on the *verifier's* keyring, and is awkwardly order-dependent if
multiple user IDs exist on the key.

Recent fr.* control messages verify successfully if the following steps
are taken. No change to the way that messages are signed is required:

1. delete the "Control <control@usenet-fr.news.eu.org>" user-id from
your copy of the public key:

  $ pgp -kr control@usenet-fr
  Pretty Good Privacy(tm) 2.6.3i - Public-key encryption for the masses.
  (c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 1996-01-18
  International version - not for use in the USA. Does not use RSAREF.
  Current time: 1998/08/07 02:34 GMT

  Removing from key ring: '/usr/news/.pgp/pubring.pgp', userid "control@usenet-fr".

  Key for user ID: Control <control@usenet-fr.news.eu.org>
  1024-bit key, key ID B5EB07BD, created 1998/07/10
  Also known as: fr.usenet.forums.annonces

  Key has more than one user ID.
  Do you want to remove the whole key (y/N)? n
  Remove "Control <control@usenet-fr.news.eu.org>" (y/N)? y

  Can't open secret key ring file '/usr/news/.pgp/secring.pgp'

  User ID removed from key ring.

2. In control.ctl, use verify-fr.usenet.forums.annonces in the fr.*
entries.

-- 
Andrew.

Re: Problem with pgpverify and fr.* control messages
#30334
Author: Alain Thivillon
Date: Fri, 07 Aug 1998 00:00
24 lines
1598 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
>   Remove "Control <control@usenet-fr.news.eu.org>" (y/N)? y
> 
>   Can't open secret key ring file '/usr/news/.pgp/secring.pgp'
> 
>   User ID removed from key ring.

Ollivier Robert just posted the same key with
control@usenet-fr.news.eu.org (whithout comment) as primary id in
fr.usenet.distribution. Post is signed with key himself. This works
now.

I guess this modified key will be on PGP keyservers soon.

> 2. In control.ctl, use verify-fr.usenet.forums.annonces in the fr.*
> entries.

Your method is indeed correct, but you need to check this everytime you
update your server if you overwrite control.ctl.

-- 
Alain Thivillon -+- at@rominet.net

Re: Problem with pgpverify and fr.* control messages
#30349
Author: Ollivier Robert
Date: Fri, 07 Aug 1998 00:00
42 lines
2658 bytes
In article <871zqt4ig9.fsf@erlenstar.demon.co.uk>,
Andrew Gierth  <andrew@erlenstar.demon.co.uk> wrote:
> 2. In control.ctl, use verify-fr.usenet.forums.annonces in the fr.*
> entries.

The other way is to use the following modified key where the primary ID is
"control@usenet-fr.news.eu.org". That way, the verify-<ID> token is good
and no need to change the control.ctl entry.

Sorry for the inconvenience.

Type Bits/KeyID    Date       User ID
pub  1024/B5EB07BD 1998/07/10 control@usenet-fr.news.eu.org
                              Control <control@usenet-fr.news.eu.org>
                              fr.usenet.forums.annonces

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3ia

mQCNAzWmUiEAAAEEAOPaQr+8kL2D02TMg34nWqzRGyQLfO09QJeEux+pZMq34vR1
tgYvjh4hMpBepIdHYPooUeilWoieDimNEIkhWjDOd0YISo16i1o91K3s7daMY3VZ
M8SMZcPeOEZUZ4yvj83q9Z1vc/rIC25JFBLf2YTMBph3Pnx/tLgiQr+16we9AAUR
tB1jb250cm9sQHVzZW5ldC1mci5uZXdzLmV1Lm9yZ4kAlQMFEDXKL6q4IkK/tesH
vQEBa28EAN0XAIB3YFphdeICkr4z4l7k9zdesZnKsP3qsgqEnlPvNggD78l7R2ZI
bHD/m8JnIZ+sxU2sOVO/vwLJhD7KZ5qtpljc6vcQiVkUVbfsbDWHkqqMqaO2/4rt
dbfMU8D/LILibZ7zo4/EKHbgthL7EueMrIswcF7Z5y0A8W654h0QtCdDb250cm9s
IDxjb250cm9sQHVzZW5ldC1mci5uZXdzLmV1Lm9yZz6JAJUDBRA1qntauCJCv7Xr
B70BAcBcBACz7ftK3xMcCnFMAAiIu56QKbl4NfUVNpxYNaewQq3oZd8IoI+sWpkp
SyFyACadofIMig3m18QwkLfKkrbkXwzjCvmj/kTeCNDeVQcoVl8tEx0zDquDiiCS
g2e9Bd+j/TveiNh5/tAii+znjVXyGAdjgk0VsKVeUcm7qt4lMCXwjLQZZnIudXNl
bmV0LmZvcnVtcy5hbm5vbmNlc4kAlQMFEDWmUiG4IkK/tesHvQEBRf4D/iJTcOQf
duPEqQ0dhDAe8gDO0rSqX0QIPh4dbjxLQVK13aaHzuxgE3cdm9zFpf9jcmOqslHd
R8SKMFIHgI31HFBkQB6f7O7p4zsgKk77l3XU6f5l4YBTelE22VcbYRLcGnlz6oT3
PicZGO8FoYq1/QLoGd118u7b/JUZiE8v3Gfc
=oeOZ
-----END PGP PUBLIC KEY BLOCK-----

-- 
Ollivier ROBERT  -=- FreeBSD: The Power to Serve! -=-  roberto@freebsd.org
control@usenet-fr.news.eu.org

Re: Problem with pgpverify and fr.* control messages
#30355
Author: Russ Allbery
Date: Sat, 08 Aug 1998 00:00
16 lines
1370 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:

> You misunderstand the way that PGP works. Messages are not signed with a
> specific user ID, they're signed with a specific *key ID*. The user ID
> returned when a signature is verified is taken from the public key held
> on the *verifier's* keyring, and is awkwardly order-dependent if
> multiple user IDs exist on the key.

Ah, yeah.  Right -- I honestly should have known that.  Apologies for the
misinformation, and thanks to the fr.* folks for issuing a new key that
will work correctly with the current control.ctl files.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

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