TLS: support multiple certificate files in server. Bug 2092
[exim.git] / test / scripts / 2100-OpenSSL / 2102
CommitLineData
9d1c15ef 1# TLS server: general ops and certificate extractions
59371ea7
PH
2exim -DSERVER=server -bd -oX PORT_D
3****
4client-ssl 127.0.0.1 PORT_D
5??? 220
6ehlo rhu.barb
7??? 250-
8??? 250-
9??? 250-
10??? 250-
5b456975 11??? 250-
59371ea7
PH
12??? 250
13starttls
14??? 220
15mail from:<CALLER@test.ex>
16??? 250
17rcpt to:<CALLER@test.ex>
18??? 250
19DATA
20??? 3
21This is a test encrypted message.
22.
23??? 250
24quit
25??? 221
26****
fd98a5c6
JH
27client-ssl 127.0.0.1 PORT_D
28??? 220
29ehlo rhu.barb
30??? 250-
31??? 250-
32??? 250-
33??? 250-
34??? 250-
35??? 250
36starttls
37??? 220
38mail from:<"name with spaces"@test.ex>
39??? 250
40rcpt to:<CALLER@test.ex>
41??? 250
42DATA
43??? 3
44This is a test encrypted message.
45.
46??? 250
47quit
48??? 221
49****
131c0f8a 50# nonloop addr conn rejected lacking cert
59371ea7
PH
51client-ssl HOSTIPV4 PORT_D
52??? 220
53ehlo rhu.barb
54??? 250-
55??? 250-
56??? 250-
57??? 250-
5b456975 58??? 250-
59371ea7
PH
59??? 250
60starttls
131c0f8a
JH
61??? 220 TLS go ahead
62+++ 1
63help
64??? 554
59371ea7 65****
9d1c15ef 66client-ssl HOSTIPV4 PORT_D DIR/aux-fixed/exim-ca/example.com/server2.example.com/server2.example.com.pem DIR/aux-fixed/exim-ca/example.com/server2.example.com/server2.example.com.unlocked.key
59371ea7
PH
67??? 220
68ehlo rhu.barb
69??? 250-
70??? 250-
71??? 250-
72??? 250-
5b456975 73??? 250-
59371ea7
PH
74??? 250
75starttls
76??? 220
77mail from:<CALLER@test.ex>
78??? 250
79rcpt to:<CALLER@test.ex>
80??? 250
81DATA
82??? 3
83This is a test encrypted message from a verified host.
84.
85??? 250
86quit
87??? 221
88****
89killdaemon
ba86e143
JH
90#
91# make ECDSA authentication preferred
92# DEFAULT:+RSA should work but does not seem to
93exim -DSERVER=server -DORDER=ECDSA:RSA:!COMPLEMENTOFDEFAULT -bd -oX PORT_D
94****
95client-ssl 127.0.0.1 PORT_D
96??? 220
97ehlo rhu.barb
98??? 250-
99??? 250-
100??? 250-
101??? 250-
102??? 250-
103??? 250
104starttls
105??? 220
106mail from:<CALLER@test.ex>
107??? 250
108rcpt to:<CALLER@test.ex>
109??? 250
110DATA
111??? 3
112This is a test encrypted message.
113It should be sent under the EC server cert and with an ECDSA cipher.
114.
115??? 250
116quit
117??? 221
118****
119killdaemon
59371ea7
PH
120exim -qf
121****
122exim -bh 10.0.0.1
123starttls
124quit
125****