Make $tls_out_ocsp visible to TPDA (mostly testsuite)
[exim.git] / test / scripts / 5608-OCSP-OpenSSL-TPDA / 5608
1 # OCSP stapling, client, tpda
2 # duplicate of 5601
3 #
4 #
5 # Client works when we request but don't require OCSP stapling and none comes
6 exim -bd -oX PORT_D -DSERVER=server -DOCSP=/dev/null
7 ****
8 exim norequire@test.ex
9 test message.
10 ****
11 sleep 1
12 killdaemon
13 #
14 #
15 #
16 #
17 # Client works when we request but don't require OCSP stapling and some arrives
18 exim -bd -oX PORT_D -DSERVER=server \
19  -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
20 ****
21 exim norequire@test.ex
22 test message.
23 ****
24 #
25 #
26 #
27 #
28 # Client works when we don't request OCSP stapling
29 exim nostaple@test.ex
30 test message.
31 ****
32 #
33 #
34 #
35 #
36 # Client accepts good stapled info
37 exim good@test.ex
38 test message.
39 ****
40 sleep 1
41 killdaemon
42 #
43 #
44 #
45 # Client fails on lack of required stapled info
46 exim -bd -oX PORT_D -DSERVER=server -DOCSP=/dev/null
47 ****
48 exim failrequire@test.ex
49 test message.
50 ****
51 sleep 1
52 killdaemon
53 no_msglog_check
54 #
55 #
56 #
57 # Client fails on revoked stapled info
58 EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
59  -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp
60 ****
61 exim failrevoked@test.ex
62 test message.
63 ****
64 sleep 1
65 killdaemon
66 #
67 #
68 #
69 #
70 # Client fails on expired stapled info
71 EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
72  -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp
73 ****
74 exim failexpired@test.ex
75 test message.
76 ****
77 sleep 1
78 killdaemon
79 #
80 #
81 #
82 #