GnuTLS: Move to more-modern stapling API
[exim.git] / test / scripts / 5650-OCSP-GnuTLS / 5650
... / ...
CommitLineData
1# OCSP stapling, server
2#
3#
4#
5exim -z '1: Server sends good staple on request'
6****
7#
8exim -bd -oX PORT_D -DSERVER=server \
9 -DOPTION=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
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#
35exim -z '2: Server does not staple an outdated response'
36****
37#
38exim -bd -oX PORT_D -DSERVER=server \
39 -DOPTION=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp
40****
41client-gnutls -ocsp aux-fixed/exim-ca/expired1.example.com/CA.pem HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
42??? 220
43ehlo rhu.barb
44??? 250-
45??? 250-
46??? 250-
47??? 250-
48??? 250-
49??? 250
50starttls
51??? 454
52****
53killdaemon
54#
55#
56#
57#
58#
59exim -z '3: Server does not staple a response for a revoked cert'
60****
61#
62exim -bd -oX PORT_D -DSERVER=server \
63 -DOPTION=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp
64****
65client-gnutls \
66 -ocsp aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem \
67 HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
68??? 220
69ehlo rhu.barb
70??? 250-
71??? 250-
72??? 250-
73??? 250-
74??? 250-
75??? 250
76starttls
77??? 454
78****
79killdaemon
80#
81#
82#
83#
84#
85exim -z '4: Connection functions when server is prepared to staple but client does not request it'
86****
87#
88exim -bd -oX PORT_D -DSERVER=server \
89 -DOPTION=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
90****
91#
92client-gnutls \
93 HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
94??? 220
95ehlo rhu.barb
96??? 250-
97??? 250-
98??? 250-
99??? 250-
100??? 250-
101??? 250
102starttls
103??? 220
104ehlo rhu.barb.tls
105??? 250-
106??? 250-
107??? 250-
108??? 250-
109??? 250
110quit
111****
112killdaemon
113#
114#
115#
116#
117#