DELL srvadmin-omilcoreをyum updateしようとしたら鍵が違ってエラーになった

作成日:
srvadmin-omilcore-9.1.0-3013.13047.el7.x86_64.rpm

CentOS 7.5 がインストールされたDELLのサーバーでOSMAツール(srvadmin-omilcore)を srvadmin-omilcore-9.1.0-3013.13047.el7.x86_64.rpm に更新しようとしたところ、次のメッセージが表示されました。

Downloading packages:
warning: /var/cache/yum/x86_64/7/dell-system-update_dependent/packages/srvadmin-omilcore-9.1.0-3013.13047.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 34d8786f: NOKEY
http://linux.dell.com/repo/hardware/latest/public.key から鍵を取得中です。


The GPG keys listed for the "dell-system-update_dependent" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.


 Failing package is: srvadmin-omilcore-9.1.0-3013.13047.el7.x86_64
 GPG Keys are configured as: http://linux.dell.com/repo/hardware/latest/public.key
鍵が違う

この辺の仕組みには詳しくありませんが、鍵がサーバーが持っている鍵と違うよと言っているようです。

そこでネット検索すると、英文ですが同じ現象になっている方の記事がありました。

https://www.dell.com/community/Systems-Management-General/srvadmin-omilcore-package-signature-verification-failure/td-p/6100045

DELLに問い合わせた方がいるようで、その回答によると、これまでの鍵は暗号化アルゴリズムにSHA1を使用していたが、非推奨のためSHA512を使うようになったということのようです。

対応

DELLの人の回答より、対応としては新しい鍵をインポートすれば良いようです。

# rpm --import http://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc

この後 yum update したらエラー無く更新できました。ただ、次のようなメッセージが表示されました。インストールが終わったらログインし直せば良いようです。

 更新します              : srvadmin-omilcore-9.1.0-3013.13047.el7.x86_64                                                                                                     
      **********************************************************
     After the install process completes, you may need
     to log out and then log in again to reset the PATH
     variable to access the Server Administrator CLI utilities

     **********************************************************