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