openvz package verification

http://openvz.org/Package_signatures

All the packages that are released by OpenVZ project are digitally signed by OpenVZ GPG key. Thus, you can check that those packages are indeed came from OpenVZ.

1 Public and private keys
1.1 OpenVZ public key
2 Checking RPM packages
3 Checking files
3.1 Importing the public key
3.1.1 From a local file
3.1.2 From the default keyserver
3.1.3 From the pgp.mit.edu keyserver
3.2 Checking the signature

There is a pair of keys generated for the purpose of signing and verifying the signature.

Private key is the key that is available to OpenVZ stuff only and is protected by the passphrase. This key is used for signing the packages, so nobody else but OpenVZ stuff can sign them using this key.

Public key is the key that is available to everyone and can usually be obtained from a number of different places. Public key is used to verify the signature.

OpenVZ public key

OpenVZ public key is available from the several sources. We urge you to use a few different sources because chances are lower they all can be compromised at the same time.

RPM-GPG-Key-OpenVZ Old main site
RPM-GPG-Key-OpenVZ Download site
RPM-GPG-Key-OpenVZ wwwkeys.de.pgp.net
RPM-GPG-Key-OpenVZ pgp.mit.edu
RPM-GPG-Key-OpenVZ keys.keysigning.org
RPM-GPG-Key-OpenVZ pgp.surfnet.nl
RPM-GPG-Key-OpenVZ keys.gnupg.net
RPM-GPG-Key-OpenVZ pool.sks-keyservers.net
RPM-GPG-Key-OpenVZ keys.nayr.net

Key fingerprint = DEAB A031 F0A1 8848 9D71 01D2 92A6 0DA6 A7A1 D4B6

Checking RPM packages

RPM package manager has a build-in GPG signatures support. Signatures are embedded into the .rpm files, and public keys are stored in an rpm database In order to check OpenVZ RPM package signatures, you need to import OpenVZ public key to your RPM database. To that effect, do the following (usually you are required to be root):

# rpm –import RPM-GPG-Key-OpenVZ

Then, to check the packages, use this command (root is not needed):

$ rpm -K *.rpm

Here *.rpm are some RPM packages.

Checking files

Some files (e.g. precreated OS templates) are also signed by the GPG key. Unlike RPMS, they do not contain the signature inside the file, but rather there is a separate small .asc file available.
[edit] Importing the public key

First, you need to import OpenVZ public key to your GnuPG keychain. You can either import a local file, or search for the key on one of the public keyservers.

From a local file

$ gpg –import RPM-GPG-Key-OpenVZ

From the default keyserver

$ gpg –search-keys security@openvz.org
gpg: searching for “security@openvz.org” from hkp server keys.gnupg.net
(1) OpenVZ Project <security@openvz.org>
1024 bit DSA key A7A1D4B6, created: 2005-09-14
Keys 1-1 of 1 for “security@openvz.org”. Enter number(s), N)ext, or Q)uit > 1
gpg: requesting key A7A1D4B6 from hkp server keys.gnupg.net
gpg: key A7A1D4B6: public key “OpenVZ Project <security@openvz.org>” imported
gpg: Total number processed: 1
gpg: imported: 1

From the pgp.mit.edu keyserver

$ gpg –keyserver pgp.mit.edu –search-keys OpenVZ
gpg: searching for “OpenVZ” from hkp server pgp.mit.edu
(1) OpenVZ Project
1024 bit DSA key A7A1D4B6, created: 2005-09-14
Enter number(s), N)ext, or Q)uit > 1
gpg: requesting key A7A1D4B6 from hkp server pgp.mit.edu

Checking the signature

To check the signature, you need to have both the main file (e.g. the template tarball) and the signature file (the one which ends in .asc).

Assuming you want to check the signature of centos-4-i386-default.tar.gz file:

$ gpg –verify centos-4-i386-default.tar.gz.asc

You should see something like this:

gpg: Signature made Wed Dec 14 19:13:53 2005 MSK using DSA key ID A7A1D4B6
gpg: Good signature from “OpenVZ Project <security@openvz.org>”

7 thoughts on “openvz package verification

  1. Williambah

    Spot on with this write-up, I truly think this website needs far more consideration. I’ll probably be once more to learn way more, thanks for that info.

    Reply
  2. Danbah

    I found your blog web site on google and verify a number of of your early posts. Proceed to keep up the very good operate. I simply additional up your RSS feed to my MSN Information Reader. In search of ahead to studying extra from you afterward!…

    Reply
  3. Zogbah

    An attention-grabbing dialogue is worth comment. I feel that you need to write more on this matter, it may not be a taboo subject but usually persons are not sufficient to speak on such topics. To the next. Cheers

    Reply
  4. jacelynmonsoor

    whoah this blog is wonderful i love reading your articles.
    Keep up the great work! You understand, lots of persons are searching round for this info, you can help them greatly.

    Reply
  5. suegiblin

    Hello very nice web site!! Guy .. Beautiful .. Superb
    .. I will bookmark your blog and take the feeds also? I’m happy to
    serek out so many usefl information right here in the submit, we need develop
    more techniques in this regard, thank you for sharing.
    . . . . .

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

nineteen + 3 =