1 # TLS server: mandatory, optional, and revoked certificates
2 exim -DSERVER=server -bd -oX PORT_D
4 ### No certificate, certificate required
5 client-ssl -t2 HOSTIPV4 PORT_D
17 ????554 Security failure
19 ??? 554 Security failure
21 ????554 Security failure
25 ### No certificate, certificate optional at TLS time, required by ACL
26 client-ssl 127.0.0.1 PORT_D
39 mail from:<userx@test.ex>
41 rcpt to:<userx@test.ex>
46 ### Good certificate, certificate required
47 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
58 mail from:<userx@test.ex>
60 rcpt to:<userx@test.ex>
65 ### Good certificate, certificate optional at TLS time, checked by ACL
66 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
77 mail from:<userx@test.ex>
79 rcpt to:<userx@test.ex>
84 ### Bad certificate, certificate required
85 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
97 ????554 Security failure
99 ??? 554 Security failure
101 ### Bad certificate, certificate optional at TLS time, reject at ACL time
102 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
113 mail from:<userx@test.ex>
115 rcpt to:<userx@test.ex>
125 exim -DCRL=DIR/aux-fixed/exim-ca/example.com/CA/crl.chain.pem -DSERVER=server -bd -oX PORT_D
127 ### Otherwise good but revoked certificate, certificate required
128 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
140 ????554 Security failure
142 ??? 554 Security failure
144 ### Revoked certificate, certificate optional at TLS time, reject at ACL time
145 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
156 mail from:<userx@test.ex>
158 rcpt to:<userx@test.ex>
163 ### Good certificate, certificate required - but nonmatching CRL also present
164 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
175 mail from:<userx@test.ex>
177 rcpt to:<userx@test.ex>