1 # TLS server: general ops and certificate extractions
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.
5 # As a result the expansion done and logged is misleading.
6 # While the golden log output is set to the misleading result, the testcase
7 # would unfortunately fail on the fixed OpenSSL versions. This has been bodged
8 # by the addition of log/2102.openssl_1_1_1 and some detection coding in
9 # runtest to force a "flavour". This is fragile and bound to break in the future.
11 # Make RSA authentication the only acceptable
12 exim -DSERVER=server -DORDER=RSA -bd -oX PORT_D
14 client-ssl 127.0.0.1 PORT_D
33 rcpt to:<CALLER@test.ex>
37 This is a test encrypted message.
43 client-ssl 127.0.0.1 PORT_D
60 mail from:<"name with spaces"@test.ex>
62 rcpt to:<CALLER@test.ex>
66 This is a test encrypted message.
72 # nonloop addr conn rejected lacking cert
73 client-ssl HOSTIPV4 PORT_D
88 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
105 mail from:<b@test.ex>
107 rcpt to:<CALLER@test.ex>
111 This is a test encrypted message from a verified host.
119 # make ECDSA authentication preferred
120 # DEFAULT:+RSA should work but does not seem to
121 # also, will fail under TLS1.3 because there is no choice of auth
122 # - so we disable that in the conf
123 exim -DSERVER=server -DORDER=ECDSA:RSA:!COMPLEMENTOFDEFAULT -bd -oX PORT_D
125 client-ssl 127.0.0.1 PORT_D
142 mail from:<c@test.ex>
144 rcpt to:<CALLER@test.ex>
148 This is a test encrypted message.
149 It should be sent under the EC server cert and with an ECDSA cipher.