asynciodebian/masterdebian/stretch-backportsproxy-ticketupstream
Last change
on this file since a784735 was
a784735,
checked in by Thomas Klute <thomas2.klute@…>, 6 years ago
|
Test 27_OCSP_server: Check if gnutls-cli received a stapled OCSP response
|
-
Property mode set to
100755
|
File size:
482 bytes
|
Rev | Line | |
---|
[c4d6e77] | 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 |
---|
| 8 | export CHECK_OCSP_SERVER="true" |
---|
| 9 | |
---|
| 10 | ${srcdir}/runtests t-27 |
---|
[c05780e] | 11 | ret=${?} |
---|
[94cb972] | 12 | |
---|
[a784735] | 13 | echo "Checking if client actually got a stapled response." |
---|
| 14 | if grep -P "^- Options: .*OCSP status request," outputs/27_*.output; then |
---|
| 15 | echo "OK" |
---|
| 16 | else |
---|
| 17 | echo "Error: \"OCSP status request\" option is missing!" |
---|
| 18 | ret=1 |
---|
| 19 | fi |
---|
| 20 | |
---|
[94cb972] | 21 | exit ${ret} |
---|
Note: See
TracBrowser
for help on using the repository browser.