This commit is contained in:
2026-11-26 23:34:55 +03:00
parent 20afc2c790
commit a25f357314
167 changed files with 33202 additions and 89 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
url="${BASE_URL:-https://localhost:8443}/health/ready"
curl --noproxy '*' --silent --show-error --fail --cacert certs/ca.crt "$url" >/dev/null
set +e
curl --noproxy '*' --silent --output /dev/null "$url"
rc=$?
set -e
[[ "$rc" == 60 ]] || { echo "FAIL: expected CA verification error 60, got $rc"; exit 1; }
echo 'PASS: trusted CA succeeds; untrusted CA fails verification (60)'