#!/bin/bash
# Try HTTPS access with OCSP status check

# Skip if OCSP tests are not enabled
[ -n "${OCSP_PORT}" ] || exit 77

# trigger OCSP server test in the runtests script
export CHECK_OCSP_SERVER="true"
export OCSP_RESPONSE_FILE="$(mktemp mod_gnutls_test-XXXXXX.der)"

${srcdir}/runtests t-27
ret=${?}

rm "${OCSP_RESPONSE_FILE}"
exit ${ret}

#!/bin/bash
# Try HTTPS access with OCSP status check

# Skip if OCSP tests are not enabled
[ -n "${OCSP_PORT}" ] || exit 77

# trigger OCSP server test in the runtests script
export CHECK_OCSP_SERVER="true"

${srcdir}/runtests t-27
ret=${?}

echo "Checking if client actually got a stapled response."
if grep -P "^- Options: .*OCSP status request," outputs/27_*.output; then
    echo "OK"
else
    echo "Error: \"OCSP status request\" option is missing!"
    ret=1
fi

exit ${ret}

Test 27_OCSP_server: Check if gnutls-cli received a stapled OCSP response
Test 27_OCSP_server: Check if gnutls-cli received a stapled OCSP response
