From 72b7ae1ba6b6b4640e85cbfe7498d4010ac4ac30 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Tue, 20 Sep 2022 17:04:35 -0400 Subject: [PATCH 1/2] AppRun.sh: Search for root CA file on system --- AppRun.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/AppRun.sh b/AppRun.sh index 74a20da..0d41a77 100755 --- a/AppRun.sh +++ b/AppRun.sh @@ -42,6 +42,17 @@ if [ -n "$cxxpath" ] || [ -n "$gccpath" ]; then export LD_LIBRARY_PATH="${cxxpath}${gccpath}${LD_LIBRARY_PATH}" fi +# Find correct root CA file +POSSIBLE_CERTIFICATES="/etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt" +if [ -z "$SSL_CERT_FILE" ]; then + for i in $POSSIBLE_CERTIFICATES; do + if [ -f "$i" ]; then + export SSL_CERT_FILE="$i" + break + fi + done +fi + #echo ">>>>> $LD_LIBRARY_PATH" #echo ">>>>> $LD_PRELOAD" From c952b8eff575c13c0ba57439b6e722aea22b6a24 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Tue, 20 Sep 2022 18:54:58 -0400 Subject: [PATCH 2/2] AppRun.sh: Add more locations --- AppRun.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AppRun.sh b/AppRun.sh index 0d41a77..b6e4e4a 100755 --- a/AppRun.sh +++ b/AppRun.sh @@ -43,9 +43,12 @@ if [ -n "$cxxpath" ] || [ -n "$gccpath" ]; then fi # Find correct root CA file -POSSIBLE_CERTIFICATES="/etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt" +_POSSIBLE_CERTIFICATES="/etc/ssl/certs/ca-bundle.crt \ +/etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt \ +/etc/ssl/ca-bundle.pem /etc/pki/tls/cacert.pem" + if [ -z "$SSL_CERT_FILE" ]; then - for i in $POSSIBLE_CERTIFICATES; do + for i in $_POSSIBLE_CERTIFICATES; do if [ -f "$i" ]; then export SSL_CERT_FILE="$i" break