testsuite: tidying
[exim.git] / test / scripts / 5600-OCSP-OpenSSL / 5601
CommitLineData
f5d78688
JH
1# OCSP stapling, client
2#
3#
44662487 4# Client works when we request but don't require OCSP stapling and none comes
fbbd45ff 5exim -bd -oX PORT_D -DSERVER=server -DRETURN=/dev/null
f5d78688 6****
44662487 7exim norequire@test.ex
f5d78688
JH
8test message.
9****
10sleep 1
11killdaemon
12#
13#
14#
15#
44662487 16# Client works when we don't request OCSP stapling
f5d78688 17exim -bd -oX PORT_D -DSERVER=server \
fbbd45ff 18 -DRETURN=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
f5d78688 19****
44662487
JH
20exim nostaple@test.ex
21test message.
22****
23a217d9 23millisleep 700
44662487
JH
24#
25#
26#
27#
28# Client accepts good stapled info
f5d78688
JH
29exim CALLER@test.ex
30test message.
31****
32sleep 1
33killdaemon
34#
35#
36#
44662487 37# Client fails on lack of required stapled info
fbbd45ff 38exim -bd -oX PORT_D -DSERVER=server -DRETURN=/dev/null
f5d78688
JH
39****
40exim CALLER@test.ex
41test message.
42****
43sleep 1
44killdaemon
965b7938 45sudo rm spool/db/retry
f5d78688
JH
46#
47#
48#
49# Client fails on revoked stapled info
50EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
fbbd45ff 51 -DRETURN=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp
f5d78688
JH
52****
53exim CALLER@test.ex
54test message.
55****
56sleep 1
57killdaemon
309d78de 58millisleep 200
965b7938 59sudo rm spool/db/retry
f5d78688
JH
60#
61#
62#
63#
64# Client fails on expired stapled info
65EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
fbbd45ff 66 -DRETURN=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp
f5d78688
JH
67****
68exim CALLER@test.ex
69test message.
70****
71sleep 1
72killdaemon
73#
74#
75#
76#
965b7938 77no_msglog_check