Merge pull request #2 from lat9nq/old-plus-certs
AppRun.sh: Search for root CA file on system
This commit is contained in:
commit
842f2481d2
1 changed files with 14 additions and 0 deletions
14
AppRun.sh
14
AppRun.sh
|
@ -42,6 +42,20 @@ 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 /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
|
||||
if [ -f "$i" ]; then
|
||||
export SSL_CERT_FILE="$i"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
#echo ">>>>> $LD_LIBRARY_PATH"
|
||||
#echo ">>>>> $LD_PRELOAD"
|
||||
|
||||
|
|
Loading…
Reference in a new issue