CentOS Icon CentOS Logo
CentOS Text
   
  
Home > FAQ > CentOS 4 Specific FAQ

Requested by donavan [donavan] and Answered by Matbudz on 22-Apr-2005 19:23 (87733 reads)
Where do I get the package signing key for CentOS 4?
You need to install the CentOS RPM signing key. It is not installed as part of the base system install for security reasons. This provides you the opportunity to validate the key before installing it on your system.

RPM has the capacity to retrieve the key from a Centos Mirror:

rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4

(as root) will install ('import') the CentOS 4 package signing key for RPM to use to confirm a validly signed package.

Please note that it is safer to import the copy of the key from the install ISO media. It is in the root directory of each ISO, as RPM-GPG-KEY, and the same key is present on disc 1 as RPM-GPG-KEY-CentOS-4.

The reason this is safer is that a CD is of course an immutable media, and when one verifies ISO MD5SUMs, one is implicitly also verifying the key. As a backstop, this key is as follows:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.1 (GNU/Linux)

mQGiBEIfIY8RBACIjFavOQNbs4bjTtOblq4X5/oxuTJtv41nfqSFNeUAQke0qoxx
AUlBesWxDsOXp5VppgNEA07hGjPvzoxabLAsTccQplvHMNzmRezyukYrSTVR/F7g
ywpvlhaAFkL9jZxodXzWKk2cmBLVWvuyzlLEUBeijm2amyEHcIGAczxPawCgmVcM
9WpA6SOKivd9qTXK2XP+9BUD/2xV4OR4L7q8CSiaDMwPLo6P6D6VDc9LpVy16Wmu
iYPFJIcIpp309biKZhGZgd+gHDhld9EJcZ3A2v43GY/xCdJqZ7Uh5QIGDafnil87
2AbMIBYpcOpvAshTM10S3Qj06pIQE47oONZT5A80O/hn+Yd8ySCEswpbWCmtAxnc
iNw3A/0Qk/bKrhT6J9Um2JhMfxx/nB80mM+Jlsn58B8i4sjrIVdzc3b45Y2wbXN3
uVGuvvAFolAco3cpVy3oY1wMVuh8UlJFNESmxZL/Z7BXyKhiKUZrNxEvQt9OtD1F
d36ur8Ky8zFE5GL903Nx/dEVBvIDq2/2K3Wy9Yq3YIC0PW7fkrQlQ2VudE9T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0SxYQAc2hEQJqCI/LJU=
=Qsai
-----END PGP PUBLIC KEY BLOCK-----

If there is any question as to the validity of the key, please enquire; if a forged key is encountered, please send details, and return contact details to reach you to: security@centos.org

6 Comment(s) Print Q&A Send Q&A

The comments are owned by the poster. We aren't responsible for their content.

Poster Thread
meekrob
Posted: 2005/3/8 2:28  Updated: 2005/3/8 2:29
Peeking in the Member Window
Joined: 2005/3/6
From:
Posts: 24
 Doesn't work (for me) on CentOS 4.0 rc1
This works on CentOS 4.0, however I had a problem folllowing the above instructions using CentOS 4.0 rc1. I was able to get her done using the following command :

rpm -Fvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/centos-release-4-0.1.i386.rpm

I'm not a member of the CentOS team so I can't vouch for the validity of this key, I just got this information from the forums.

Poster Thread
hughesjr
Posted: 2005/5/14 13:45  Updated: 2005/5/14 13:45
WebMaster
Joined: 2004/12/5
From: Corpus Christi, Texas, USA
Posts: 401
Online!
 Re: Doesn't work (for me) on CentOS 4.0 rc1
Due to the seperation of the CentOS Project from the cAos foundation (info), a new (centos.org) key was generated for the CentOS-4 final release.

Another option for your key (reguardless of CentOS version) is to look in the local directory:

/usr/share/doc/centos-release-version

In that directory will be a key (RPM-GPG-KEY-centos3, RPM-GPG-KEY-centos4, etc.)

Also, if you check the MD5 sum of your ISO download (so you know it is authentic), the key is in the root directory of CD-1 on every Centos release.

You can verify all CentOS keys at: http://pgp.mit.edu/

Poster Thread
cking
Posted: 2005/5/25 16:09  Updated: 2005/5/25 16:09
Jr Board Member
Joined: 2005/5/25
From: Wichita Kansas
Posts: 43
 Where does the GPG Key go?
I followed the instructions to pull the Key off Disk 1, and it is now sitting on the desktop. What directory does this key need to be moved to?

Poster Thread
hughesjr
Posted: 2005/5/31 15:28  Updated: 2005/5/31 15:28
WebMaster
Joined: 2004/12/5
From: Corpus Christi, Texas, USA
Posts: 401
Online!
 Re: Where does the GPG Key go?
You need to import the key into RPM.

The ways are:

rpm --import /usr/share/doc/centos-release-4/RPM-GPG-KEY-centos4


or

rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4


or

rpm --import /path/to/key
(if you put it somewhere else)

Poster Thread
kolby117
Posted: 2009/10/21 10:44  Updated: 2009/10/21 10:44
Newbie
Joined: 2009/10/21
From:
Posts: 2
 No title

Poster Thread
juliana8
Posted: 2009/11/4 1:08  Updated: 2009/11/4 1:08
Newbie
Joined: 2009/11/4
From:
Posts: 1
 No title




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com