1 # TLS server: mandatory, optional, and revoked certificates
3 munge gnutls_unexpected
4 exim -DSERVER=server -bd -oX PORT_D
6 ### No certificate, certificate required
7 client-gnutls HOSTIPV4 PORT_D
19 ### No certificate, certificate optional at TLS time, required by ACL
20 client-gnutls 127.0.0.1 PORT_D
33 mail from:<userx@test.ex>
35 rcpt to:<userx@test.ex>
40 ### Good certificate, certificate required
41 client-gnutls 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
52 mail from:<userx@test.ex>
54 rcpt to:<userx@test.ex>
59 ### Good certificate, certificate optional at TLS time, checked by ACL
60 client-gnutls 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
71 mail from:<userx@test.ex>
73 rcpt to:<userx@test.ex>
78 ### Bad certificate, certificate required
79 # Actually this test does not have the client presenting a cert at all, as it filters what it has
80 # by the options offered by the server first. So it's not a good testcase.
81 client-gnutls 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
93 ### Bad certificate, certificate optional at TLS time, reject at ACL time
94 # (situation as above)
95 client-gnutls 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
106 mail from:<userx@test.ex>
108 rcpt to:<userx@test.ex>
118 exim -DCRL=DIR/aux-fixed/exim-ca/example.com/CA/crl.v2.pem -DSERVER=server -bd -oX PORT_D
120 ### Otherwise good but revoked certificate, certificate required
121 # GnuTLS seems to not mind the lack of CRLs for the nonleaf certs in the chain, unlike under OpenSSL
122 client-gnutls 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
134 ### Revoked certificate, certificate optional at TLS time, reject at ACL time
135 client-gnutls 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
146 mail from:<userx@test.ex>
148 rcpt to:<userx@test.ex>
153 ### Good certificate, certificate required - but nonmatching CRL also present
154 client-gnutls 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
165 mail from:<userx@test.ex>
167 rcpt to:<userx@test.ex>