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
18 ????554 Security failure
20 ??? 554 Security failure
22 ????554 Security failure
26 ### No certificate, certificate optional at TLS time, required by ACL
27 client-ssl 127.0.0.1 PORT_D
41 mail from:<userx@test.ex>
43 rcpt to:<userx@test.ex>
48 ### Good certificate, certificate required
49 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
63 mail from:<userx@test.ex>
65 rcpt to:<userx@test.ex>
70 ### Good certificate, certificate optional at TLS time, checked by ACL
71 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
85 mail from:<userx@test.ex>
87 rcpt to:<userx@test.ex>
92 ### Bad certificate, certificate required
93 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
106 ????554 Security failure
108 ??? 554 Security failure
110 ### Bad certificate, certificate optional at TLS time, reject at ACL time
111 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
125 mail from:<userx@test.ex>
127 rcpt to:<userx@test.ex>
137 exim -DCRL=DIR/aux-fixed/exim-ca/example.com/CA/crl.chain.pem -DSERVER=server -bd -oX PORT_D
139 ### Otherwise good but revoked certificate, certificate required
140 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
153 ????554 Security failure
155 ??? 554 Security failure
157 ### Revoked certificate, certificate optional at TLS time, reject at ACL time
158 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
172 mail from:<userx@test.ex>
174 rcpt to:<userx@test.ex>
179 ### Good certificate, certificate required - but nonmatching CRL also present
180 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
194 mail from:<userx@test.ex>
196 rcpt to:<userx@test.ex>