OCSP-stapling enhancement and testing.
[users/heiko/exim.git] / test / scripts / 5600-OCSP-OpenSSL / 5601
1 # OCSP stapling, client
2 #
3 #
4 # Client works when we don't demand OCSP stapling
5 exim -bd -oX PORT_D -DSERVER=server -DOCSP=/dev/null
6 ****
7 exim nostaple@test.ex
8 test message.
9 ****
10 sleep 1
11 killdaemon
12 #
13 #
14 #
15 #
16 # Client accepts good stapled info
17 exim -bd -oX PORT_D -DSERVER=server \
18  -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
19 ****
20 exim CALLER@test.ex
21 test message.
22 ****
23 sleep 1
24 killdaemon
25 #
26 #
27 #
28 # Client fails on lack of requested stapled info
29 exim -bd -oX PORT_D -DSERVER=server -DOCSP=/dev/null
30 ****
31 exim CALLER@test.ex
32 test message.
33 ****
34 sleep 1
35 killdaemon
36 no_msglog_check
37 #
38 #
39 #
40 # Client fails on revoked stapled info
41 EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
42  -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp
43 ****
44 exim CALLER@test.ex
45 test message.
46 ****
47 sleep 1
48 killdaemon
49 #
50 #
51 #
52 #
53 # Client fails on expired stapled info
54 EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
55  -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp
56 ****
57 exim CALLER@test.ex
58 test message.
59 ****
60 sleep 1
61 killdaemon
62 #
63 #
64 #
65 #