From ef9ef2065168316360809e98689247204bb9b714 Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Thu, 22 Aug 2019 15:56:16 +0200 Subject: [PATCH 1/2] use 'update-ca-certificates' and /etc/pki/ca-trust/source/anchors/ as a directory on RH8 --- public/tools/rmt-client-setup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/tools/rmt-client-setup b/public/tools/rmt-client-setup index 5568e58ba..bfbeadcc1 100755 --- a/public/tools/rmt-client-setup +++ b/public/tools/rmt-client-setup @@ -20,6 +20,10 @@ CA_GEN_TRUSTSTORE_CMD="/usr/bin/c_rehash" if [ -d "/etc/pki/trust/anchors/" ] && [ -x "/usr/sbin/update-ca-certificates" ]; then CA_TRUSTSTORE="/etc/pki/trust/anchors/" CA_GEN_TRUSTSTORE_CMD="/usr/sbin/update-ca-certificates" +elif [ -d "/etc/pki/ca-trust/source/anchors/" ] && [ -x "/usr/bin/update-ca-trust" ]; then + # this path is used on RES8 + CA_TRUSTSTORE="/etc/pki/ca-trust/source/anchors/" + CA_GEN_TRUSTSTORE_CMD="/usr/sbin/update-ca-certificates" elif [ -d $CA_TRUSTSTORE ] && [ -x $CA_GEN_TRUSTSTORE_CMD ]; then CA_GEN_TRUSTSTORE_CMD="$CA_GEN_TRUSTSTORE_CMD $CA_TRUSTSTORE" fi From d1276cfcd0e7bd845c93d76dcbc95a238ad25557 Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Thu, 22 Aug 2019 16:14:37 +0200 Subject: [PATCH 2/2] fix path of update-ca-trust --- public/tools/rmt-client-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tools/rmt-client-setup b/public/tools/rmt-client-setup index bfbeadcc1..53c33e439 100755 --- a/public/tools/rmt-client-setup +++ b/public/tools/rmt-client-setup @@ -23,7 +23,7 @@ if [ -d "/etc/pki/trust/anchors/" ] && [ -x "/usr/sbin/update-ca-certificates" ] elif [ -d "/etc/pki/ca-trust/source/anchors/" ] && [ -x "/usr/bin/update-ca-trust" ]; then # this path is used on RES8 CA_TRUSTSTORE="/etc/pki/ca-trust/source/anchors/" - CA_GEN_TRUSTSTORE_CMD="/usr/sbin/update-ca-certificates" + CA_GEN_TRUSTSTORE_CMD="/usr/bin/update-ca-trust" elif [ -d $CA_TRUSTSTORE ] && [ -x $CA_GEN_TRUSTSTORE_CMD ]; then CA_GEN_TRUSTSTORE_CMD="$CA_GEN_TRUSTSTORE_CMD $CA_TRUSTSTORE" fi