Testsuite: force non-TLSv1.3 for (OpenSSL) cert-variable test
[exim.git] / test / scripts / 2100-OpenSSL / 2102
CommitLineData
9d1c15ef 1# TLS server: general ops and certificate extractions
176cf342 2#
5dcadbf4
JH
3# NOTE: OpenSSL libraries return faulty my-cert information prior to OpenSSL 1.1.1
4# when more than one cert is loaded, which the conf for this testcase does.
176cf342 5# As a result the expansion done and logged is misleading.
5dcadbf4
JH
6# While the golden log output is set to the misleading result, the testcase
7# will unfortunately fail on the fixed OpenSSL versions.
176cf342
JH
8#
9# Make RSA authentication the only acceptable
6678a497 10exim -DSERVER=server -DORDER=RSA -bd -oX PORT_D
59371ea7
PH
11****
12client-ssl 127.0.0.1 PORT_D
13??? 220
14ehlo rhu.barb
15??? 250-
16??? 250-
17??? 250-
18??? 250-
5b456975 19??? 250-
59371ea7
PH
20??? 250
21starttls
22??? 220
23mail from:<CALLER@test.ex>
24??? 250
25rcpt to:<CALLER@test.ex>
26??? 250
27DATA
28??? 3
29This is a test encrypted message.
30.
31??? 250
32quit
33??? 221
34****
fd98a5c6
JH
35client-ssl 127.0.0.1 PORT_D
36??? 220
37ehlo rhu.barb
38??? 250-
39??? 250-
40??? 250-
41??? 250-
42??? 250-
43??? 250
44starttls
45??? 220
46mail from:<"name with spaces"@test.ex>
47??? 250
48rcpt to:<CALLER@test.ex>
49??? 250
50DATA
51??? 3
52This is a test encrypted message.
53.
54??? 250
55quit
56??? 221
57****
131c0f8a 58# nonloop addr conn rejected lacking cert
59371ea7
PH
59client-ssl HOSTIPV4 PORT_D
60??? 220
61ehlo rhu.barb
62??? 250-
63??? 250-
64??? 250-
65??? 250-
5b456975 66??? 250-
59371ea7
PH
67??? 250
68starttls
131c0f8a
JH
69??? 220 TLS go ahead
70+++ 1
71help
72??? 554
59371ea7 73****
9d1c15ef 74client-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
75??? 220
76ehlo rhu.barb
77??? 250-
78??? 250-
79??? 250-
80??? 250-
5b456975 81??? 250-
59371ea7
PH
82??? 250
83starttls
84??? 220
85mail from:<CALLER@test.ex>
86??? 250
87rcpt to:<CALLER@test.ex>
88??? 250
89DATA
90??? 3
91This is a test encrypted message from a verified host.
92.
93??? 250
94quit
95??? 221
96****
97killdaemon
ba86e143
JH
98#
99# make ECDSA authentication preferred
100# DEFAULT:+RSA should work but does not seem to
5dcadbf4
JH
101# also, will fail under TLS1.3 because there is no choice of auth
102# - so we disable that in the conf
ba86e143
JH
103exim -DSERVER=server -DORDER=ECDSA:RSA:!COMPLEMENTOFDEFAULT -bd -oX PORT_D
104****
105client-ssl 127.0.0.1 PORT_D
106??? 220
107ehlo rhu.barb
108??? 250-
109??? 250-
110??? 250-
111??? 250-
112??? 250-
113??? 250
114starttls
115??? 220
116mail from:<CALLER@test.ex>
117??? 250
118rcpt to:<CALLER@test.ex>
119??? 250
120DATA
121??? 3
122This is a test encrypted message.
123It should be sent under the EC server cert and with an ECDSA cipher.
124.
125??? 250
126quit
127??? 221
128****
129killdaemon
59371ea7
PH
130exim -qf
131****
132exim -bh 10.0.0.1
133starttls
134quit
135****