1 # TLS server: general ops and certificate extractions
3 exim -DSERVER=server -bd -oX PORT_D
5 # Have the client prefer RSA (but support ECDSA as well). That should get us RSA on both older and newer GnuTLS.
6 client-gnutls -p NONE:+SIGN-RSA-SHA256:+SIGN-ECDSA-SHA512:+VERS-TLS-ALL:+ECDHE-RSA:+DHE-RSA:+RSA:+CIPHER-ALL:+MAC-ALL:+COMP-NULL:+CURVE-ALL:+CTYPE-X509 127.0.0.1 PORT_D
17 mail from:<CALLER@test.ex>
19 rcpt to:<CALLER@test.ex>
23 This is a test encrypted message.
29 client-gnutls -p NONE:+SIGN-RSA-SHA256:+SIGN-ECDSA-SHA512:+VERS-TLS-ALL:+ECDHE-RSA:+DHE-RSA:+RSA:+CIPHER-ALL:+MAC-ALL:+COMP-NULL:+CURVE-ALL:+CTYPE-X509 127.0.0.1 PORT_D
40 mail from:<"name with spaces"@test.ex>
42 rcpt to:<CALLER@test.ex>
46 This is a test encrypted message.
52 client-gnutls -p NONE:+SIGN-RSA-SHA256:+SIGN-ECDSA-SHA512:+VERS-TLS-ALL:+ECDHE-RSA:+DHE-RSA:+RSA:+CIPHER-ALL:+MAC-ALL:+COMP-NULL:+CURVE-ALL:+CTYPE-X509 HOSTIPV4 PORT_D
64 client-gnutls -p NONE:+SIGN-RSA-SHA256:+SIGN-ECDSA-SHA512:+VERS-TLS-ALL:+ECDHE-RSA:+DHE-RSA:+RSA:+CIPHER-ALL:+MAC-ALL:+COMP-NULL:+CURVE-ALL:+CTYPE-X509 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
75 mail from:<CALLER@test.ex>
77 rcpt to:<CALLER@test.ex>
81 This is a test encrypted message from a verified host.
89 # A client that only talks RSA.
91 # We have to specify the key-exchange as well as the authentication, otherwise,
92 # the GnuTLS server side being foolish - it picks an ECDSA cipher-suite and then can't use it :(
93 # Possibly fixed in 3.6.x ?
94 client-gnutls -p NONE:+SIGN-RSA-SHA256:+VERS-TLS-ALL:+ECDHE-RSA:+DHE-RSA:+RSA:+CIPHER-ALL:+MAC-ALL:+COMP-NULL:+CURVE-ALL:+CTYPE-X509 127.0.0.1 PORT_D
105 mail from:<CALLER@test.ex>
107 rcpt to:<CALLER@test.ex>
111 This is a test encrypted message.
112 It should be sent under the RSA server cert and with an RSA cipher.
120 # Make ECDSA authentication preferred (Older GnuTLS prefers RSA, it seems, Newer, ECDSA).
121 client-gnutls -p NONE:+SIGN-ECDSA-SHA512:+VERS-TLS-ALL:+KX-ALL:+CIPHER-ALL:+MAC-ALL:+COMP-NULL:+CURVE-ALL:+CTYPE-X509 127.0.0.1 PORT_D
132 mail from:<CALLER@test.ex>
134 rcpt to:<CALLER@test.ex>
138 This is a test encrypted message.
139 It should be sent under the EC server cert and with an ECDSA cipher.