Skip to content

Commit

Permalink
sll-185: Fix untrusted CA by moving singing key imports after calling…
Browse files Browse the repository at this point in the history
… OG rmt-client-setup
  • Loading branch information
plorinc committed Apr 24, 2023
1 parent dc30add commit 983a81c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/tools/rmt-client-setup-res
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ else
fi

echo "detect ${SLL_name} version... ${SLL_version}"
echo "Importing repomd.xml.key"
$RPM --import ${REGURL}/repo/SUSE/Updates/${SLL_name}/${SLL_version}/x86_64/update/repodata/repomd.xml.key

echo "Disabling all repositories"
dnf config-manager --disable $(dnf repolist -q | awk '{ print $1 }' | grep -v repo)
Expand Down Expand Up @@ -127,6 +125,9 @@ $CURL --silent --show-error --insecure $REGURL/tools/rmt-client-setup --output r
echo "Running rmt-client-setup $PARAMS"
sh rmt-client-setup $PARAMS

echo "Importing repomd.xml.key"
$RPM --import ${REGURL}/repo/SUSE/Updates/${SLL_name}/${SLL_version}/x86_64/update/repodata/repomd.xml.key

if [[ ${SLL_version} > 8 ]]; then
systemctl start suseconnect-keepalive.timer
systemctl enable suseconnect-keepalive.timer
Expand Down

0 comments on commit 983a81c

Please sign in to comment.