Skip to main content
Version: 23.10

Rotating keys

For security reasons, the keys used to sign Centreon RPMs or the Debian repository must be rotated occasionally.

Fresh installation

If you performed a fresh installation after the new RPM key was published, no additional actions are necessary, apart from accepting the new rpm key.

Retrieving key from https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
Importing GPG key 0x3FC49C1B:
Userid : "Centreon Enterprise Server Official Signing Key <admin@centreon.com>"
Fingerprint: 1035 e42c b766 7952 ee42 dee9 a97d aa5a 3fc4 9c1b
From : https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
Is this ok [y/N]:

However, you can check that you have the correct key.

Existing installation

If you performed a fresh installation of a Centreon platform before the new RPM key was published, the existing key must be replaced with the new one.

  1. Download the following script:

    curl -JO https://raw.githubusercontent.com/centreon/centreon/master/centreon/check-centreon-gpg-key.sh
  2. Make the script executable:

    chmod u+x check-centreon-gpg-key.sh
  3. Run the script:

    sh check-centreon-gpg-key.sh

    The script will:

    • check the RPM key in the RPM database and ask you to remove it
    • check the key file in the /etc/pki/rpm-gpg directory
    • ask you to fetch and import the new RPM key into the RPM database
    • ask you to update the release RPM package (this will remove the revoked key from /etc/pki/rpm-gpg)
    • ask you to check the signature of the RPM packages.

Checks

You can then check that the new key has been correctly imported. For the new key published on October 14, 2021:

  • After installation, check if the new key has been correctly imported into the RPM database:

    rpm -qi gpg-pubkey-3fc49c1b-651d4c25

    The results should be as follows:

    Name        : gpg-pubkey
    Version : 3fc49c1b
    Release : 651d4c25
    Architecture: (none)
    Install Date: Mon Apr 22 11:49:38 2024
    Group : Public Keys
    Size : 0
    License : pubkey
    Signature : (none)
    Source RPM : (none)
    Build Date : Wed Oct 4 11:27:33 2023
    Build Host : localhost
    Relocations : (not relocatable)
    Packager : Centreon Enterprise Server Official Signing Key <admin@centreon.com>
    Summary : gpg(Centreon Enterprise Server Official Signing Key <admin@centreon.com>)
    Description :
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: rpm-4.14.3 (NSS-3)

    mQGNBGFm61IBDADen8ge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sMV+LgXy5
    8lBqheQL3uasxNH/zaihBHA0sp7jpswiBOSnwiSOaRJOhGk/BLksCnf8yFnPEUMa
    CqskzKhfZDOYBol226SMavErj/6/5fy8dfoLYsDUW2UB0ojqGSYIYG9invVhEg5+
    exr+xNI6MB01EJkcSw/GowXUh5MFDtSdtRNGtZxymEObjkauLj9L1daAkHWYdFmn
    LCEHvNUqYnxkVFiNRQHlY3ZoZMYOmLleEbTPnGiRmukG+EipqeI1nmeFUmPXeDnC
    =sZGh
    -----END PGP PUBLIC KEY BLOCK-----
  • Check that the only Centreon key in the RPM database is this one: gpg-pubkey-3fc49c1b-651d4c25:

    rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'

    The results should be as follows:

    gpg-pubkey-f4a80eb5-53a7ff4b    gpg(CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>)
    gpg-pubkey-f2ee9d55-560cfc0a gpg(CentOS SoftwareCollections SIG (https://wiki.centos.org/SpecialInterestGroup/SCLo) <security@centos.org>)
    gpg-pubkey-3fc49c1b-651d4c25 gpg(Centreon Enterprise Server Official Signing Key <admin@centreon.com>)

List of keys

OSFingerprintValidity
Alma/RHEL/Oracle Linux0E52 401B 40F6 044F 928C 0B7B F6FC 4AE3 8A76 52BCrevoked October 14, 2021
Alma/RHEL/Oracle Linux1035 E42C B766 7952 EE42 DEE9 A97D AA5A 3FC4 9C1Bvalid from October 14, 2021
Debian1441 882B ED29 D70C F2E8 74D6 5E9C 3745 59B6 C02Erevoked April 11, 2024
DebianC903 FA90 C5EC 3C69 C922 9203 0395 7625 73E5 0BC4valid from April 12, 2024