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
60 mail from:<userx@test.ex>
62 rcpt to:<userx@test.ex>
67 ### Good certificate, certificate optional at TLS time, checked by ACL
68 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
81 mail from:<userx@test.ex>
83 rcpt to:<userx@test.ex>
88 ### Bad certificate, certificate required
89 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
101 ????554 Security failure
103 ??? 554 Security failure
105 ### Bad certificate, certificate optional at TLS time, reject at ACL time
106 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
119 mail from:<userx@test.ex>
121 rcpt to:<userx@test.ex>
131 exim -DCRL=DIR/aux-fixed/exim-ca/example.com/CA/crl.chain.pem -DSERVER=server -bd -oX PORT_D
133 ### Otherwise good but revoked certificate, certificate required
134 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
146 ????554 Security failure
148 ??? 554 Security failure
150 ### Revoked certificate, certificate optional at TLS time, reject at ACL time
151 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
164 mail from:<userx@test.ex>
166 rcpt to:<userx@test.ex>
171 ### Good certificate, certificate required - but nonmatching CRL also present
172 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
185 mail from:<userx@test.ex>
187 rcpt to:<userx@test.ex>