|
@@ -5,16 +5,16 @@ export BB_ENV_PASSTHROUGH_ADDITIONS="${BB_ENV_PASSTHROUGH_ADDITIONS:-} OPENSSL_C
|
|
|
|
|
|
# Respect host env SSL_CERT_FILE/SSL_CERT_DIR first, then auto-detected host cert, then cert in buildtools
|
|
# Respect host env SSL_CERT_FILE/SSL_CERT_DIR first, then auto-detected host cert, then cert in buildtools
|
|
# CAFILE/CAPATH is auto-deteced when source buildtools
|
|
# CAFILE/CAPATH is auto-deteced when source buildtools
|
|
-if [ -z "$SSL_CERT_FILE" ]; then
|
|
|
|
- if [ -n "$CAFILE" ];then
|
|
|
|
|
|
+if [ -z "${SSL_CERT_FILE:-}" ]; then
|
|
|
|
+ if [ -n "${CAFILE:-}" ];then
|
|
export SSL_CERT_FILE="$CAFILE"
|
|
export SSL_CERT_FILE="$CAFILE"
|
|
elif [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then
|
|
elif [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then
|
|
export SSL_CERT_FILE="$OECORE_NATIVE_SYSROOT/usr/lib/ssl-3/certs/ca-certificates.crt"
|
|
export SSL_CERT_FILE="$OECORE_NATIVE_SYSROOT/usr/lib/ssl-3/certs/ca-certificates.crt"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
|
|
-if [ -z "$SSL_CERT_DIR" ]; then
|
|
|
|
- if [ -n "$CAPATH" ];then
|
|
|
|
|
|
+if [ -z "${SSL_CERT_DIR:-}" ]; then
|
|
|
|
+ if [ -n "${CAPATH:-}" ];then
|
|
export SSL_CERT_DIR="$CAPATH"
|
|
export SSL_CERT_DIR="$CAPATH"
|
|
elif [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then
|
|
elif [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then
|
|
export SSL_CERT_DIR="$OECORE_NATIVE_SYSROOT/usr/lib/ssl-3/certs"
|
|
export SSL_CERT_DIR="$OECORE_NATIVE_SYSROOT/usr/lib/ssl-3/certs"
|