1 # TLS server: mandatory, optional, and revoked certificates
2 exim -DSERVER=server -bd -oX PORT_D
4 ### No certificate, certificate required
5 client-ssl HOSTIPV4 PORT_D
17 ??? 554 Security failure
19 ????554 Security failure
23 ### No certificate, certificate optional at TLS time, required by ACL
24 client-ssl 127.0.0.1 PORT_D
37 mail from:<userx@test.ex>
39 rcpt to:<userx@test.ex>
44 ### Good certificate, certificate required
45 client-ssl HOSTIPV4 PORT_D aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
56 mail from:<userx@test.ex>
58 rcpt to:<userx@test.ex>
63 ### Good certificate, certificate optional at TLS time, checked by ACL
64 client-ssl 127.0.0.1 PORT_D aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
75 mail from:<userx@test.ex>
77 rcpt to:<userx@test.ex>
82 ### Bad certificate, certificate required
83 client-ssl HOSTIPV4 PORT_D aux-fixed/exim-ca/example.net/server1.example.net/server1.example.net.chain.pem aux-fixed/exim-ca/example.net/server1.example.net/server1.example.net.unlocked.key
95 ??? 554 Security failure
97 ### Bad certificate, certificate optional at TLS time, reject at ACL time
98 client-ssl 127.0.0.1 PORT_D aux-fixed/exim-ca/example.net/server1.example.net/server1.example.net.chain.pem aux-fixed/exim-ca/example.net/server1.example.net/server1.example.net.unlocked.key
109 mail from:<userx@test.ex>
111 rcpt to:<userx@test.ex>
121 exim -DCRL=DIR/aux-fixed/exim-ca/example.com/CA/crl.chain.pem -DSERVER=server -bd -oX PORT_D
123 ### Otherwise good but revoked certificate, certificate required
124 client-ssl HOSTIPV4 PORT_D aux-fixed/exim-ca/example.com/revoked1.example.com/revoked1.example.com.chain.pem aux-fixed/exim-ca/example.com/revoked1.example.com/revoked1.example.com.unlocked.key
136 ??? 554 Security failure
138 ### Revoked certificate, certificate optional at TLS time, reject at ACL time
139 client-ssl 127.0.0.1 PORT_D aux-fixed/exim-ca/example.com/revoked1.example.com/revoked1.example.com.chain.pem aux-fixed/exim-ca/example.com/revoked1.example.com/revoked1.example.com.unlocked.key
150 mail from:<userx@test.ex>
152 rcpt to:<userx@test.ex>
157 ### Good certificate, certificate required - but nonmatching CRL also present
158 client-ssl HOSTIPV4 PORT_D aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
169 mail from:<userx@test.ex>
171 rcpt to:<userx@test.ex>