Test update.
[exim.git] / test / scripts / 2100-OpenSSL / 2114
CommitLineData
59371ea7
PH
1# TLS server: mandatory, optional, and revoked certificates
2exim -DSERVER=server -bd -oX PORT_D
3****
4# No certificate, certificate required
5client-ssl HOSTIPV4 PORT_D
6??? 220
7ehlo rhu.barb
8??? 250-
9??? 250-
10??? 250-
11??? 250-
12??? 250
13starttls
14??? 220
15****
16# No certificate, certificate optional at TLS time, required by ACL
17client-ssl 127.0.0.1 PORT_D
18??? 220
19ehlo rhu.barb
20??? 250-
21??? 250-
22??? 250-
23??? 250-
24??? 250
25starttls
26??? 220
27helo rhu.barb
28??? 250
29mail from:<userx@test.ex>
30??? 250
31rcpt to:<userx@test.ex>
32??? 550
33quit
34??? 221
35****
36# Good certificate, certificate required
37client-ssl HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
38??? 220
39ehlo rhu.barb
40??? 250-
41??? 250-
42??? 250-
43??? 250-
44??? 250
45starttls
46??? 220
47mail from:<userx@test.ex>
48??? 250
49rcpt to:<userx@test.ex>
50??? 250
51quit
52??? 221
53****
54# Good certificate, certificate optional at TLS time, checked by ACL
55client-ssl 127.0.0.1 PORT_D aux-fixed/cert2 aux-fixed/cert2
56??? 220
57ehlo rhu.barb
58??? 250-
59??? 250-
60??? 250-
61??? 250-
62??? 250
63starttls
64??? 220
65mail from:<userx@test.ex>
66??? 250
67rcpt to:<userx@test.ex>
68??? 250
69quit
70??? 221
71****
72# Bad certificate, certificate required
73client-ssl HOSTIPV4 PORT_D aux-fixed/cert1 aux-fixed/cert1
74??? 220
75ehlo rhu.barb
76??? 250-
77??? 250-
78??? 250-
79??? 250-
80??? 250
81starttls
82??? 220
83****
84# Bad certificate, certificate optional at TLS time, reject at ACL time
85client-ssl 127.0.0.1 PORT_D aux-fixed/cert1 aux-fixed/cert1
86??? 220
87ehlo rhu.barb
88??? 250-
89??? 250-
90??? 250-
91??? 250-
92??? 250
93starttls
94??? 220
95mail from:<userx@test.ex>
96??? 250
97rcpt to:<userx@test.ex>
98??? 550-
99??? 550
100quit
101??? 221
102****
103killdaemon
104exim -DCRL=DIR/aux-fixed/crl.pem -DSERVER=server -bd -oX PORT_D
105****
106# Good but revoked certificate, certificate required
107client-ssl HOSTIPV4 PORT_D aux-fixed/cert2 aux-fixed/cert2
108??? 220
109ehlo rhu.barb
110??? 250-
111??? 250-
112??? 250-
113??? 250-
114??? 250
115starttls
116??? 220
117****
118# Revoked certificate, certificate optional at TLS time, reject at ACL time
119client-ssl 127.0.0.1 PORT_D aux-fixed/cert1 aux-fixed/cert1
120??? 220
121ehlo rhu.barb
122??? 250-
123??? 250-
124??? 250-
125??? 250-
126??? 250
127starttls
128??? 220
129mail from:<userx@test.ex>
130??? 250
131rcpt to:<userx@test.ex>
132??? 550-
133??? 550
134quit
135??? 221
136****
137killdaemon