X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/57233af5f91cdca9a0232a71fab2d12a538cb1a6..b217e871882835c14d7bda8e35c0d7e888a40349:/test/scripts/5600-OCSP-OpenSSL/5601 diff --git a/test/scripts/5600-OCSP-OpenSSL/5601 b/test/scripts/5600-OCSP-OpenSSL/5601 index b2983eb0d..d6eac7c3d 100644 --- a/test/scripts/5600-OCSP-OpenSSL/5601 +++ b/test/scripts/5600-OCSP-OpenSSL/5601 @@ -1,10 +1,10 @@ # OCSP stapling, client # # -# Client works when we don't demand OCSP stapling -exim -bd -oX PORT_D -DSERVER=server -DOCSP=/dev/null +# Client works when we request but don't require OCSP stapling and none comes +exim -bd -oX PORT_D -DSERVER=server -DRETURN="" **** -exim nostaple@test.ex +exim norequire@test.ex test message. **** sleep 1 @@ -13,11 +13,20 @@ killdaemon # # # -# Client accepts good stapled info +# Client works when we don't request OCSP stapling exim -bd -oX PORT_D -DSERVER=server \ - -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp + -DRETURN=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp +**** +exim nostaple@test.ex +test message. **** -exim CALLER@test.ex +millisleep 700 +# +# +# +# +# Client accepts good stapled info +exim goodstaple@test.ex test message. **** sleep 1 @@ -25,36 +34,38 @@ killdaemon # # # -# Client fails on lack of requested stapled info -exim -bd -oX PORT_D -DSERVER=server -DOCSP=/dev/null +# Client fails on lack of required stapled info +exim -bd -oX PORT_D -DSERVER=server -DRETURN="" **** -exim CALLER@test.ex +exim nostaple_required@test.ex test message. **** sleep 1 killdaemon -no_msglog_check +sudo rm spool/db/retry* # # # # Client fails on revoked stapled info EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \ - -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp + -DRETURN=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp **** -exim CALLER@test.ex +exim revoked@test.ex test message. **** sleep 1 killdaemon +millisleep 200 +sudo rm spool/db/retry* # # # # # Client fails on expired stapled info EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \ - -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp + -DRETURN=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp **** -exim CALLER@test.ex +exim expired@test.ex test message. **** sleep 1 @@ -63,3 +74,4 @@ killdaemon # # # +no_msglog_check