Refactor tls_client_init interface
[exim.git] / test / scripts / 5600-OCSP-OpenSSL / 5601
CommitLineData
f5d78688
JH
1# OCSP stapling, client
2#
3#
4# Client works when we don't demand OCSP stapling
5exim -bd -oX PORT_D -DSERVER=server -DOCSP=/dev/null
6****
7exim nostaple@test.ex
8test message.
9****
10sleep 1
11killdaemon
12#
13#
14#
15#
16# Client accepts good stapled info
17exim -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****
20exim CALLER@test.ex
21test message.
22****
23sleep 1
24killdaemon
25#
26#
27#
28# Client fails on lack of requested stapled info
29exim -bd -oX PORT_D -DSERVER=server -DOCSP=/dev/null
30****
31exim CALLER@test.ex
32test message.
33****
34sleep 1
35killdaemon
36no_msglog_check
37#
38#
39#
40# Client fails on revoked stapled info
41EXIM_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****
44exim CALLER@test.ex
45test message.
46****
47sleep 1
48killdaemon
49#
50#
51#
52#
53# Client fails on expired stapled info
54EXIM_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****
57exim CALLER@test.ex
58test message.
59****
60sleep 1
61killdaemon
62#
63#
64#
65#