From f5bbad185f205cfd86ba73a4d29f4a8d8f5e05f2 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 27 May 2022 13:52:26 -0600 Subject: [PATCH] Supplement to @julek-wolfssl's fantastic find, just allow for proper expansion --- scripts/ocsp-stapling.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ocsp-stapling.test b/scripts/ocsp-stapling.test index 3b817a5c6..41e536f41 100755 --- a/scripts/ocsp-stapling.test +++ b/scripts/ocsp-stapling.test @@ -234,7 +234,7 @@ if [ ! -f "$ready_file" ]; then exit 1 else # should fail if ocspstapling is also enabled - OPENSSL_OUTPUT=$(echo "hi" | openssl s_client -status "$V4V6_FLAG" -connect "${LOCALHOST}:$port1" -cert ./certs/client-cert.pem -key ./certs/client-key.pem -CAfile ./certs/ocsp/root-ca-cert.pem 2>&1) + OPENSSL_OUTPUT=$(echo "hi" | openssl s_client -status $V4V6_FLAG -connect "${LOCALHOST}:$port1" -cert ./certs/client-cert.pem -key ./certs/client-key.pem -CAfile ./certs/ocsp/root-ca-cert.pem 2>&1) OPENSSL_RESULT=$? echo "$OPENSSL_OUTPUT" fgrep -q 'self signed certificate in certificate chain' <<< "$OPENSSL_OUTPUT"