Support REQUIRETLS
[exim.git] / test / scripts / 5650-OCSP-GnuTLS / 5650
CommitLineData
2b4a568d
JH
1# OCSP stapling, server
2#
3#
4#
98716abe
JH
5exim -z '1: Server sends good staple on request'
6****
7#
2b4a568d 8exim -bd -oX PORT_D -DSERVER=server \
8ac90765 9 -DOPTION=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
2b4a568d
JH
10****
11client-gnutls \
12 -ocsp aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem \
13 HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
14??? 220
15ehlo rhu.barb
16??? 250-
17??? 250-
18??? 250-
19??? 250-
20??? 250-
21??? 250
22starttls
23??? 220
24mail from:<userx@test.ex>
25??? 250
26rcpt to:<userx@test.ex>
27??? 250
28quit
29??? 221
30****
31killdaemon
32#
33#
34#
98716abe
JH
35exim -z '2: Server does not staple an outdated response'
36****
37#
2b4a568d 38exim -bd -oX PORT_D -DSERVER=server \
8ac90765 39 -DOPTION=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp
2b4a568d
JH
40****
41# XXX test sequence might not be quite right; this is for a server refusal
42# and we're expecting a client refusal.
43client-gnutls -ocsp aux-fixed/exim-ca/expired1.example.com/CA.pem HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
44??? 220
45ehlo rhu.barb
46??? 250-
47??? 250-
48??? 250-
49??? 250-
50??? 250-
51??? 250
52starttls
53??? 220
54****
55killdaemon
56#
57#
58#
59#
60#
98716abe
JH
61exim -z '3: Server does not staple a response for a revoked cert'
62****
63#
2b4a568d 64exim -bd -oX PORT_D -DSERVER=server \
8ac90765 65 -DOPTION=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp
2b4a568d
JH
66****
67client-gnutls \
68 -ocsp aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem \
69 HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
70??? 220
71ehlo rhu.barb
72??? 250-
73??? 250-
74??? 250-
75??? 250-
76??? 250-
77??? 250
78starttls
79??? 220
80****
81killdaemon
82#
83#
84#
85#
86#
98716abe
JH
87exim -z '4: Connection functions when server is prepared to staple but client does not request it'
88****
89#
90exim -bd -oX PORT_D -DSERVER=server \
8ac90765 91 -DOPTION=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
98716abe
JH
92****
93#
0886a95e 94client-gnutls \
98716abe
JH
95 HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
96??? 220
97ehlo rhu.barb
98??? 250-
99??? 250-
100??? 250-
101??? 250-
102??? 250-
103??? 250
104starttls
105??? 220
106ehlo rhu.barb.tls
107??? 250-
108??? 250-
109??? 250-
110??? 250-
111??? 250
112quit
113****
114killdaemon
115#
116#
117#
118#
119#