RPM

/etc/RPM-GPG-KEYS are not Mageia's

Bug #913222 reported by Jeff Johnson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Mandriva
Fix Released
Medium

Bug Description

An argument for hkp:// transport and non-repudiable signatures

Tags: mageia pubkeys
Revision history for this message
In , Dvgevers (dvgevers) wrote :

[ Please reassign to proper component / rpm if not okay ]

* This concerns an install on a formatted disk, not an upgrade.

ls -al /etc/RPM-GPG-KEYS

-rw-r--r-- 1 root root 8080 Aug 23 2003 22458a98.asc # Mandriva Security
-rw-r--r-- 1 root root 1430 Aug 23 2003 70771ff3.asc # Mandriva Linux
-rw-r--r-- 1 root root 1462 Aug 23 2003 9b4a4024.asc # MandrakeSoft

$ gpg --list-keys mageia
pub 4096R/80420F66 2011-02-07 [expires: 2012-03-13]
uid Mageia Packages <email address hidden>

pub 4096R/DA10B483 2011-03-08 [expires: 2012-04-11]
uid Mageia Release <email address hidden>

pub 4096R/41BCD9E7 2011-04-18 [expires: 2012-05-22]
uid Mageia Software <email address hidden>

$ rpm -qa |grep pubk
gpg-pubkey-80420f66-4d4fe123

Revision history for this message
In , Dmorganec (dmorganec) wrote :

in the gnupg rpm this is in SOURCES/mdk-keys.tar.bz2 which should be changed.

Revision history for this message
In , Michael Scherer (misc-zarb) wrote :

The following snippet should do the trick to regenerate the keys :

 for i in 41BCD9E7 DA10B483 80420F66; do gpg --recv $i ; gpg -a -o $i.asc --export $i ;done;

I guess this warrant a update

Revision history for this message
In , Michael Scherer (misc-zarb) wrote :

On the other hand, do we need to keep the directory ?

What is it used for, with current rpm ?

Revision history for this message
In , Dvgevers (dvgevers) wrote :

In my idea Michael's snippet may not do the trick: last time I tried a gnupg key with exteral signatures did not import into rpm. After all, rpm may not even use the said keys from /etc, but IMHO they are supposed to be rpm-workable keys.

Gnupg can strip everything external, or surely at Mageia there is a clean set of keys saved somewhere.

But my attempts at importing keys into rpm date from 6 to 8 years ago, so what I say may no longer be true.

Revision history for this message
In , Dvgevers (dvgevers) wrote :

If one want's to clean the key with gnupg: gpg --edit-key <keyid> followed by minimize, quit and --export...

Revision history for this message
In , Dmorganec (dmorganec) wrote :

sorry, i need to give a keyserver, which one can i give ?

gpg: no keyserver known (use option --keyserver)
gpg: keyserver receive failed: bad URI

Revision history for this message
In , Dvgevers (dvgevers) wrote :

Normally in ~/.gnupg/gpg.conf, but this should always work:
--keyserver hkp://pgp.mit.edu:11371

Revision history for this message
In , Dvgevers (dvgevers) wrote :

The 'pubkey' file - if need be with added extension '.asc' - in the media_info directory of each repository is equal in content to the clean rpm-gpg-keys.

Revision history for this message
In , Dvgevers (dvgevers) wrote :

e.g. mv pubkey pubkey.asc
gpg --import pubkey.asc

and observe stdout !

Revision history for this message
In , J-manuel (j-manuel) wrote :

Bug assigned to the package maintainer.

Revision history for this message
In , Dvgevers (dvgevers) wrote :

@boklm @dmorgan:

Kindly review. IMHO this should be a release blocker for Mga2.

Thanks!

Jeff Johnson (n3npq)
tags: added: mageia pubkeys
Changed in mandriva:
importance: Unknown → Medium
status: Unknown → In Progress
Revision history for this message
In , Jeff Johnson (n3npq) wrote :
Revision history for this message
In , Marja11 (marja11) wrote :

Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Revision history for this message
In , Dvgevers (dvgevers) wrote :

Still valid for 2 and Cauldron.

Revision history for this message
In , Manuel-mageia (manuel-mageia) wrote :

 .

Changed in mandriva:
status: In Progress → Confirmed
Revision history for this message
In , Dvgevers (dvgevers) wrote :

Still valid for beta3.

Isn't is about time this was solved? It looks really bad on Mageia if we cannot fix this before final release !

Revision history for this message
In , Dvgevers (dvgevers) wrote :

Valid for 3RC. Almost 2 years old

Revision history for this message
In , Dvgevers (dvgevers) wrote :

Valid for prerelease isos of Mageia 3 final

Revision history for this message
In , Boklm (boklm) wrote :

Package updated in svn to remove /etc/RPM-GPG-KEYS.

Revision history for this message
In , Boklm (boklm) wrote :

And submitted to Mageia 3 by ennael.

Revision history for this message
In , Dvgevers (dvgevers) wrote :

Nicolas: thanks for the fix. But for good order's sake: did you ascertain that the absence of the directory has no negative effects for anything like rpm building or other?

Revision history for this message
In , Boklm (boklm) wrote :

I couldn't find anything using that directory. And since the directory had wrong keys since the begining of Mageia, we should have noticed if it broke something important.

Revision history for this message
In , Dvgevers (dvgevers) wrote :

'like the way u think.

Changed in mandriva:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.