From f2e13e38542d500180815b2591bef18214a7ce4e Mon Sep 17 00:00:00 2001 From: UmaShankar Avagadda Date: Fri, 29 Dec 2023 06:38:12 +0000 Subject: [PATCH] ZCS-13984:Use SHA-256 GPG Key for RHEL9 --- rpmconf/Install/Util/utilfunc.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rpmconf/Install/Util/utilfunc.sh b/rpmconf/Install/Util/utilfunc.sh index 1f23d92d7..b60ae2821 100755 --- a/rpmconf/Install/Util/utilfunc.sh +++ b/rpmconf/Install/Util/utilfunc.sh @@ -2221,10 +2221,18 @@ fi print "Aborting, unknown platform: $PLATFORM" exit 1 fi - rpm -q gpg-pubkey-0f30c305-5564be70 > /dev/null + if [ $PLATFORM = "RHEL9_64" ]; then + rpm -q gpg-pubkey-7c66bd84-6583eafa > /dev/null + else + rpm -q gpg-pubkey-0f30c305-5564be70 > /dev/null + fi if [ $? -ne 0 ]; then echo "Importing Zimbra GPG key" - rpm --import https://files.zimbra.com/downloads/security/public.key >>$LOGFILE 2>&1 + if [ $PLATFORM = "RHEL9_64" ]; then + rpm --import https://files.zimbra.com/downloads/security/public-sha-256.key >>$LOGFILE 2>&1 + else + rpm --import https://files.zimbra.com/downloads/security/public.key >>$LOGFILE 2>&1 + fi if [ $? -ne 0 ]; then echo "ERROR: Unable to retrive Zimbra GPG key for package validation" echo "Please fix system to allow normal package installation before proceeding"