Validate Signed RPMs

The HPE Cray EX system signs RPMs to provide an extra level of security. Use the following procedure to import a key from either My HPE Software Center or a Kubernetes Secret, and then use that key to validate the RPM package signatures on each node type.

The RPMs will vary on compute, application, worker, master, and storage nodes. Check each node type to ensure the RPMs are correctly signed.

Procedure

  1. (ncn-mw#) Retrieve the signing key required to validate the RPMs.

    Use either the My HPE Software Center or Kubernetes Secret method to find the signing key.

    • My HPE Software Center:

      Download the signing key.

      curl LINK_TO_KEY_IN_My_HPE_Software_Center
      
    • Kubernetes Secret:

      Find the key and write it to a file.

      kubectl -n services get secrets hpe-signing-key -o jsonpath='{.data.hpe-signing-key-dst-2026\.asc}' | base64 -d | tee hpe-signing-key-dst-2026.asc
      

      Example output:

      -----BEGIN PGP PUBLIC KEY BLOCK-----
      
      mQINBGi4alMBEACpKTCFgxFEOVBH7ZQWRDXbGMUZXmOn63+HVvLZsRncPeQ0A7qX
      4Bb4x1r7919yk0J9UB6Dt0ckEyaBGpxHSVkzodqZEbFRmkTuFCGALsFiUQlWasRR
      WU/TybRaKSXAoESxVQpttwCiWgh27N7Q2iCycYCWInaDmWhbn8aWNgMqxY+9wEKC
      53U7kXKbkK+2LrFV5jcZ1UJkDlceAbRpQOkerJOemviFC0YCzRS/zDdc1SfRBv5R
      grGSClVAEPuEUQt0ueCHQhsveGk2wy2RSnwQRb0KAFyC/VFh4SotWfLMuUfqib3O
      1XaOYH9KybOCbuHi5M0gtweBFJ0b5ZQXqromXhkMPCsPQ8ti23iWr0cBTZcPWN6I
      K7+GyGEFKZvJTiIIEeY+UrBUFLiuWQIL2Q/rZCdDErv7DC8jFqotml6TVoVoEk/X
      mERw+oKkQyJ78djfVwwWKos652XUzNIryBtKJGq1HPkWofBe7fT4ml/N7NAIXmdy
      X1N8a9+d1h/7CROq4aeD7E+jqVhQfnGup7RAvoPKyUeSjsHN7olcHQxjYE5qIChP
      SpKgX+d3fNYuwKHUYyDxXRFFnfUOl2WIYAqG9csmkN2xxiiIbP5N7UuQQZS77paz
      2zsTWv7R7NzwTGXzBlTyMTsRu2zDV0mF5mgVlnQRuI5HTyvQfe3eyAESMQARAQAB
      tD5IZXdsZXR0IFBhY2thcmQgRW50ZXJwcmlzZSBDb21wYW55IDIwMjUtMy0yNyA8
      c2lnbmluZ0BocGUuY29tPokCVwQTAQgAQRYhBA5vLhwzKeKMCiWCjBe9p8IZz7Nz
      BQJouGpTAhsDBQkF8c8sBQsJCAcCAiICBhUKCQgLAgQWAgMBAh4HAheAAAoJEBe9
      p8IZz7NzFckP/23f8va+JUuYEPqMG6pDbXeLFdTZ/9/YlARnQSSLNz18GAiFMttZ
      BHagGrf6YKEUn0Yzmoww/4swUd5Mo6pOIuMpjf2lVHNp5qXtKR0++HQsUEq6RiBW
      GYXrDSm20fXoUj8U52nlFLpZ/LfzkR2Vl3wSRhQH+YhCLjzNo4Rm/NECRdyioX4B
      Azw+El+qre5fWnkoCPg8lR5agX3Wq4yxbprQRELG6e7xpktHWWQOHvz49pLzYtRa
      wWQgEPiTMDVs5t+ly7SNzETlxMMIfBXgKaId55uCQY+gMXz6dzXHwqIUDdidlyZY
      il3zxSeqGnMjrGl62ayIVx/BAwEWGAIseDj8LZnswEZt3IN9fbYiwsUist11vWsZ
      DQcohYlXs/E+Yu0v9JylyYna/SKFW4yWqd2/hY/946VIcQv9ieiTMaYPnVUVn4c7
      d82/Rpb8btQwagI31HrRFX61aHy6eBU+KWuGQf5WW9/LFj7fzCjxXv8YkNUA57pC
      8cFVLLRElHRiEMQVDmyFccTFvhrqpmjkma98duBh6l7xYm0lBVyVEUPOrl/DZYaj
      OkqtF6jpZ6Iudvp1yy5Zz0yOSYCAsxqKdxRHfqBSPy0aVBNEmRNvPI9htSzFTEfy
      rxTFRzFlBKy/YJJaaC1cvtV/sY7bbq7p9GVdyJ0vInXkTtrG5AT5++fk
      =VP2C
      -----END PGP PUBLIC KEY BLOCK-----
      
  2. (ncn-mw#) Verify that HPE is the issuer of the signed packages.

    Replace the PATH-TO-KEY value in the following command with the path to the signing key.

    gpg --show-keys PATH-TO-KEY/hpe-signing-key-dst-2026.asc
    

    Example output:

     pub   rsa4096 2025-09-03 [SC] [expires: 2028-10-31]
       0E6F2E1C3329E28C0A25828C17BDA7C219CFB373
     uid                      Hewlett Packard Enterprise Company 2025-3-27 <signing@hpe.com>
    
  3. (ncn-mw#) Import the signing key.

    rpm --import hpe-signing-key-dst-2026.asc
    
  4. (ncn-mw#) Get the 8 character key ID (version) from the signing key.

    KEYID=$(gpg --show-keys --with-colons hpe-signing-key-dst-2026.asc | awk -F: '$1=="pub" {print substr($5, 9, 8); exit}')
    echo "$KEYID"
    

    Example output:

    19CFB373
    
  5. (ncn-mw#) Search for the signed packages using the key ID from the previous step.

    rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE} %{SIGGPG:pgpsig}\n' | grep -i "$KEYID"
    

    Example output:

    gpg-pubkey-19cfb373-68b86a53 (none)
    
  6. (ncn-mw#) Validate the signature on an RPM.

    The RPM in this example is platform-utils-1.8.6-1.noarch.rpm. Replace the PATH-TO-RPM value in the following command with the path to the RPM.

    rpm -Kvv PATH-TO-RPM/platform-utils-1.8.6-1.noarch.rpm
    

    Example output:

    ufdio:       1 reads,    19077 total bytes in 0.000025 secs
    D: loading keyring from pubkeys in /usr/lib/sysimage/rpm/pubkeys/*.key
    D: couldn't find any keys in /usr/lib/sysimage/rpm/pubkeys/*.key
    D: loading keyring from rpmdb
    D: opening  db environment /usr/lib/sysimage/rpm cdb:private:0x201
    D: opening  db index       /usr/lib/sysimage/rpm/Packages 0x400 mode=0x0
    D: locked   db index       /usr/lib/sysimage/rpm/Packages
    D: opening  db index       /usr/lib/sysimage/rpm/Name nofsync:0x400 mode=0x0
    D:  read h#       1
    Header SHA1 digest: OK
    D: added key gpg-pubkey-09d9ea69-67c857f3 to keyring
    D:  read h#       2
    Header SHA1 digest: OK
    D: added key gpg-pubkey-39db7c82-66c5d91a to keyring
    D:  read h#       3
    Header SHA1 digest: OK
    D: added key gpg-pubkey-3fa1d6ce-67c856ee to keyring
    D:  read h#       4
    Header SHA1 digest: OK
    D: added key gpg-pubkey-50a3dd1c-50f35137 to keyring
    D:  read h#       5
    Header SHA1 digest: OK
    D: added key gpg-pubkey-6f5da62b-67c8590f to keyring
    D:  read h#       6
    Header SHA1 digest: OK
    D: added key gpg-pubkey-73f03759-626bd414 to keyring
    D:  read h#       7
    Header SHA1 digest: OK
    D: added key gpg-pubkey-af5425f7-67c858a1 to keyring
    D:  read h#       8
    Header SHA1 digest: OK
    D: added key gpg-pubkey-d588dc46-63c939db to keyring
    D:  read h#     250
    Header SHA1 digest: OK
    D: added key gpg-pubkey-25db7ae0-645bae34 to keyring
    D:  read h#     251
    Header SHA1 digest: OK
    D: added key gpg-pubkey-9a296436-67145df8 to keyring
    D:  read h#     412
    Header SHA1 digest: OK
    D: added key gpg-pubkey-08570fc0-64ef9793 to keyring
    D:  read h#    1100
    Header SHA1 digest: OK
    D: added key gpg-pubkey-9da39f44-5669d183 to keyring
    D:  read h#    1101
    Header SHA1 digest: OK
    D: added key gpg-pubkey-26c2b797-5669d0b9 to keyring
    D:  read h#    1102
    Header SHA1 digest: OK
    D: added key gpg-pubkey-324e6311-63b2a922 to keyring
    D:  read h#    1103
    Header SHA1 digest: OK
    D: added key gpg-pubkey-29b700a4-62b07e22 to keyring
    D:  read h#    1128
    Header SHA1 digest: OK
    D: added key gpg-pubkey-74c3a4a2-66d9d955 to keyring
    D:  read h#    1237
    Header SHA1 digest: OK
    D: added key gpg-pubkey-19cfb373-68b86a53 to keyring
    D: Using legacy gpg-pubkey(s) from rpmdb
    /etc/cray/upgrade/csm/media/171p2alpha5/csm-1.7.1-p2alpha.5/rpm/cray/csm/noos/noarch/platform-utils-1.8.6-1.noarch.rpm:
        Header V4 RSA/SHA256 Signature, key ID 19cfb373: OK
        Header SHA256 digest: OK
        Header SHA1 digest: OK
        Payload SHA256 digest: OK
        MD5 digest: OK
    ufdio:       8 reads,    26749 total bytes in 0.000040 secs
    D: closed   db index       /usr/lib/sysimage/rpm/Packages
    D: closed   db index       /usr/lib/sysimage/rpm/Name
    D: closed   db environment /usr/lib/sysimage/rpm