X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/a1bccd48f3956b50a13a34f5aed4b72c658c61af..59c0959a36649c4554bd0f18f2c2e74571ed41eb:/test/scripts/5840-DANE-OpenSSL/5840 diff --git a/test/scripts/5840-DANE-OpenSSL/5840 b/test/scripts/5840-DANE-OpenSSL/5840 index 814b4b0e8..f988cd1cd 100644 --- a/test/scripts/5840-DANE-OpenSSL/5840 +++ b/test/scripts/5840-DANE-OpenSSL/5840 @@ -2,29 +2,138 @@ # exim -DSERVER=server -DDETAILS=ee -bd -oX PORT_D **** -# TLSA (3 1 1) -exim CALLER@dane256ee.test.ex +### TLSA (3 1 1) (DANE-EE SPKI SHA2-256) +exim -odq CALLER@dane256ee.test.ex Testing **** -# TLSA (3 1 2) -exim CALLER@mxdane512ee.test.ex +### TLSA (3 1 2) ( SHA2-512) +exim -odq CALLER@mxdane512ee.test.ex Testing **** exim -qf **** -killdaemon -exim -DSERVER=server -DDETAILS=ee -DNOTDAEMON -qf +# +# +### Recipient callout +exim -DOPT=callout -bhc 127.0.0.1 +MAIL FROM: +RCPT TO: **** +killdaemon # # exim -DSERVER=server -DDETAILS=ta -bd -oX PORT_D **** -# TLSA (2 0 1) -exim CALLER@mxdane256ta.test.ex +### TLSA (2 0 1) (DANE-TA CERT SHA2-256) +exim -odf CALLER@mxdane256ta.test.ex +Testing +**** +killdaemon +# +# OpenSSL-specific regression testcase: certificate having Authority Key ID extension +exim -DSERVER=server -DCERT=DIR/aux-fixed/exim-ca/example.com/server2.example.com/fullchain.pem -DALLOW=DIR/aux-fixed/exim-ca/example.com/server2.example.com/server2.example.com.unlocked.key -bd -oX PORT_D +**** +### TLSA (2 1 1) +exim -odf CALLER@mxdane256tak.test.ex +Testing +**** +killdaemon +# +### A server with a nonverifying cert and no TLSA +# Check we get a non-CV but TLS connection, with try_dane but no require_dane +exim -DSERVER=server -DDETAILS=no -bd -oX PORT_D +**** +exim -odf CALLER@thishost.test.ex +Testing +**** +killdaemon +# +### A server with a verifying cert and no TLSA +# Check we get a CV and TLS connection, with try_dane but no require_dane +exim -DSERVER=server -DDETAILS=ca -bd -oX PORT_D +**** +exim -odf -DDETAILS=ca CALLER@thishost.test.ex +Testing +**** +exim -DOPT=no_certname -qf +**** +killdaemon +# +# +exim -DSERVER=server -DDETAILS=ee -bd -oX PORT_D +**** +### A server with two MXs for which both TLSA lookups return defer (delivery should defer) +exim -odq CALLER@mxdanelazy.test.ex +Testing +**** +### A server lacking a TLSA, dane required (should fail) +exim -odq CALLER@dane.no.1.test.ex +Testing +**** +### A server lacking a TLSA, dane requested only (should deliver, non-DANE, as the NXDOMAIN is not DNSSEC) +exim -odq CALLER@dane.no.2.test.ex +Testing +**** +### A server where the A is dnssec and the TLSA lookup _fails_ (delivery should defer) +exim -odq CALLER@danebroken1.test.ex +Testing +**** +### A server securely saying "no TLSA records here", dane required (delivery should fail) +exim -odq CALLER@dane.no.3.test.ex +Testing +**** +### A server securely saying "no TLSA records here", dane requested only (should deliver) +exim -odq CALLER@dane.no.4.test.ex Testing **** exim -qf **** +# +### A server securely serving a wrong TLSA record, dane requested only (delivery should fail) +exim -odf CALLER@danebroken2.test.ex +Testing +**** +### A server insecurely serving a good TLSA record, dane requested only (should deliver, non-DANE) +exim -odf CALLER@danebroken3.test.ex +Testing +**** +### A server insecurely serving a good TLSA record, dane required (delivery should fail) +exim -odf CALLER@danebroken4.test.ex +Testing +**** +### A server insecurely serving a good A record, dane requested only (should deliver, non-DANE) +exim -odf CALLER@danebroken5.test.ex +Testing +**** +### A server insecurely serving a good A record, dane required (delivery should fail) +exim -odf CALLER@danebroken6.test.ex +Testing +**** +# +killdaemon +# +# +# +### A server with a name not matching the cert. TA-mode; should fail +exim -DSERVER=server -DDETAILS=cert.net -bd -oX PORT_D +**** +exim -odf CALLER@danebroken7.example.com +Testing +**** +# +### A server with a name not matching the cert. EE-mode; should deliver and claim DANE mode +exim -odf CALLER@danebroken8.example.com +Testing +**** killdaemon -exim -DSERVER=server -DDETAILS=ta -DNOTDAEMON -qf +# +# +sudo rm DIR/spool/db/retry +exim -DSERVER=server -DDETAILS=ca -bd -oX PORT_D +**** +### A server securely serving a wrong TLSA record, dane not requested (delivery should work non-dane) +exim -odf -DCONTROL=: CALLER@danebroken2.test.ex **** +killdaemon +# +no_msglog_check