aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-07-31 10:24:59 +0900
committerKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-07-31 16:13:12 +0900
commita10cbdaf4fb6d11f741464ef162c1ffdeeb926b2 (patch)
tree09165d046f459b8ff77475b88332a1edfd2359da
parent515955745b835904d20f90e431a92c598a24f5a5 (diff)
downloadportable-a10cbdaf4fb6d11f741464ef162c1ffdeeb926b2.tar.gz
portable-a10cbdaf4fb6d11f741464ef162c1ffdeeb926b2.tar.bz2
portable-a10cbdaf4fb6d11f741464ef162c1ffdeeb926b2.zip
pass the bundled CA file to callbackfailures
Pass cert.pem using the optional roots file argument instead of relying on the /etc/ssl/cert.pem path.
-rwxr-xr-xtests/x509_callbacks.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/x509_callbacks.sh b/tests/x509_callbacks.sh
index 7cc1376..a48e638 100755
--- a/tests/x509_callbacks.sh
+++ b/tests/x509_callbacks.sh
@@ -27,12 +27,14 @@ fi
27case "$srcdir" in 27case "$srcdir" in
28/*) 28/*)
29 certs_path="$srcdir/certs" 29 certs_path="$srcdir/certs"
30 ca_file="$srcdir/../cert.pem"
30 callback_check="$srcdir/callback.pl" 31 callback_check="$srcdir/callback.pl"
31 make_dir_roots="$srcdir/make-dir-roots.pl" 32 make_dir_roots="$srcdir/make-dir-roots.pl"
32 openssl_conf="$srcdir/openssl.cnf" 33 openssl_conf="$srcdir/openssl.cnf"
33 ;; 34 ;;
34*) 35*)
35 certs_path="`pwd`/$srcdir/certs" 36 certs_path="`pwd`/$srcdir/certs"
37 ca_file="`pwd`/$srcdir/../cert.pem"
36 callback_check="`pwd`/$srcdir/callback.pl" 38 callback_check="`pwd`/$srcdir/callback.pl"
37 make_dir_roots="`pwd`/$srcdir/make-dir-roots.pl" 39 make_dir_roots="`pwd`/$srcdir/make-dir-roots.pl"
38 openssl_conf="`pwd`/$srcdir/openssl.cnf" 40 openssl_conf="`pwd`/$srcdir/openssl.cnf"
@@ -87,6 +89,6 @@ mkdir "$workdir"
87 cd "$workdir" 89 cd "$workdir"
88 "$callback_bin" "$certs_path" 90 "$callback_bin" "$certs_path"
89 "$PERL" "$callback_check" callback.out 91 "$PERL" "$callback_check" callback.out
90 "$callbackfailures_bin" "$certs_path" 92 "$callbackfailures_bin" "$certs_path" "$ca_file"
91 "$expirecallback_bin" "$certs_path" 93 "$expirecallback_bin" "$certs_path"
92) 94)