1 # OCSP stapling, server
5 exim -z '1: Server sends good staple on request'
8 exim -bd -oX PORT_D -DSERVER=server \
9 -DOPT=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
12 -ocsp aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem \
13 HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
24 mail from:<userx@test.ex>
26 rcpt to:<userx@test.ex>
35 exim -z '2: Server does not staple an outdated response'
38 exim -bd -oX PORT_D -DSERVER=server \
39 -DOPT=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp
41 # XXX test sequence might not be quite right; this is for a server refusal
42 # and we're expecting a client refusal.
43 client-gnutls -ocsp aux-fixed/exim-ca/expired1.example.com/CA.pem HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
61 exim -z '3: Server does not staple a response for a revoked cert'
64 exim -bd -oX PORT_D -DSERVER=server \
65 -DOPT=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp
68 -ocsp aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem \
69 HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
87 exim -z '4: Connection functions when server is prepared to staple but client does not request it'
90 exim -bd -oX PORT_D -DSERVER=server \
91 -DOPT=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
95 HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2