source: mod_gnutls/test/test-27_OCSP_server.bash @ 0a12ff8

debian/masterdebian/stretch-backportsupstream
Last change on this file since 0a12ff8 was a784735, checked in by Thomas Klute <thomas2.klute@…>, 3 years ago

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

  • Property mode set to 100755
File size: 482 bytes
Line 
1#!/bin/bash
2# Try HTTPS access with OCSP status check
3
4# Skip if OCSP tests are not enabled
5[ -n "${OCSP_PORT}" ] || exit 77
6
7# trigger OCSP server test in the runtests script
8export CHECK_OCSP_SERVER="true"
9
10${srcdir}/runtests t-27
11ret=${?}
12
13echo "Checking if client actually got a stapled response."
14if grep -P "^- Options: .*OCSP status request," outputs/27_*.output; then
15    echo "OK"
16else
17    echo "Error: \"OCSP status request\" option is missing!"
18    ret=1
19fi
20
21exit ${ret}
Note: See TracBrowser for help on using the repository browser.