diff --git a/scripts/ocsp-stapling2.test b/scripts/ocsp-stapling2.test index c4c2df13b..ea0667954 100755 --- a/scripts/ocsp-stapling2.test +++ b/scripts/ocsp-stapling2.test @@ -371,6 +371,25 @@ if [ $? -ne 0 ]; then exit 1 fi printf '%s\n\n' "Test successful" +printf '%s\n\n' "------------- TEST CASE 8 SHOULD REVOKE ----------------------" +remove_single_rF $ready_file5 +./examples/server/server -c certs/ocsp/server4-cert.pem \ + -k certs/ocsp/server4-key.pem -R $ready_file5 \ + -p $resume_port -H loadSSL & +wolf_pid=$! +sleep 1 +CLI_PORT=`cat $ready_file5` +./examples/client/client -C -A certs/ocsp/root-ca-cert.pem -W 3 -v 3 \ + -p $CLI_PORT +RESULT=$? +[ $RESULT -ne 1 ] && printf '\n\n%s\n' "Client connection suceeded $RESULT" && exit 1 +wait $wolf_pid +if [ $? -ne 1 ]; then + printf '%s\n' "Unexpected server result" + exit 1 +fi +printf '%s\n\n' "Test successfully REVOKED!" + printf '%s\n\n' "------------------- TESTS COMPLETE ---------------------------" exit 0