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 # will unfortunately fail on the fixed OpenSSL versions.
9 # Make RSA authentication the only acceptable
10 exim -DSERVER=server -DORDER=RSA -bd -oX PORT_D
12 client-ssl 127.0.0.1 PORT_D
23 mail from:<CALLER@test.ex>
25 rcpt to:<CALLER@test.ex>
29 This is a test encrypted message.
35 client-ssl 127.0.0.1 PORT_D
46 mail from:<"name with spaces"@test.ex>
48 rcpt to:<CALLER@test.ex>
52 This is a test encrypted message.
58 # nonloop addr conn rejected lacking cert
59 client-ssl HOSTIPV4 PORT_D
74 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
85 mail from:<CALLER@test.ex>
87 rcpt to:<CALLER@test.ex>
91 This is a test encrypted message from a verified host.
99 # make ECDSA authentication preferred
100 # DEFAULT:+RSA should work but does not seem to
101 # also, will fail under TLS1.3 because there is no choice of auth
102 # - so we disable that in the conf
103 exim -DSERVER=server -DORDER=ECDSA:RSA:!COMPLEMENTOFDEFAULT -bd -oX PORT_D
105 client-ssl 127.0.0.1 PORT_D
116 mail from:<CALLER@test.ex>
118 rcpt to:<CALLER@test.ex>
122 This is a test encrypted message.
123 It should be sent under the EC server cert and with an ECDSA cipher.