From d3c4008b59c342e5e074f8f31766cda977fe2972 Mon Sep 17 00:00:00 2001 From: Tha_14 Date: Wed, 15 Nov 2023 11:07:40 +0200 Subject: [PATCH] fix: add ca-certificates support for termux in run_toxic.sh --- script/build-minimal-static-toxic.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/build-minimal-static-toxic.sh b/script/build-minimal-static-toxic.sh index c51a2a8..ce90184 100755 --- a/script/build-minimal-static-toxic.sh +++ b/script/build-minimal-static-toxic.sh @@ -277,6 +277,7 @@ echo '#!/usr/bin/env sh DEBIAN_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt RHEL_SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt OPENSUSE_CERT_FILE=/etc/ssl/ca-bundle.pem +TERMUX_CERT_FILE=/data/data/com.termux/files/usr/etc/tls/cert.pem if [ ! -f "$SSL_CERT_FILE" ] ; then if [ -f "$DEBIAN_SSL_CERT_FILE" ] ; then @@ -285,6 +286,8 @@ if [ ! -f "$SSL_CERT_FILE" ] ; then SSL_CERT_FILE="$RHEL_SSL_CERT_FILE" elif [ -f "$OPENSUSE_CERT_FILE" ] ; then SSL_CERT_FILE="$OPENSUSE_CERT_FILE" + elif [ -f "$TERMUX_CERT_FILE" ] ; then + SSL_CERT_FILE="$TERMUX_CERT_FILE" fi fi