GnuTLS: full-chain OCSP stapling. Bug 1466
[exim.git] / test / confs / 5655
1 # Exim test configuration 5655
2 # OCSP stapling, server, multiple chain-element OCSP
3
4 .include DIR/aux-var/tls_conf_prefix
5
6 primary_hostname = server1.example.com
7
8 # ----- Main settings -----
9
10 acl_smtp_connect = accept logwrite = ${env {SSLKEYLOGFILE}}
11 acl_smtp_mail = check_mail
12 acl_smtp_rcpt = check_recipient
13
14 log_selector = +tls_peerdn
15
16 queue_only
17 queue_run_in_order
18
19 tls_advertise_hosts = *
20
21 CADIR = DIR/aux-fixed/exim-ca
22 DRSA = CADIR/example.com
23 DECDSA = CADIR/example_ec.com
24
25 tls_certificate = DRSA/server1.example.com/fullchain.pem \
26               : DECDSA/server1.example_ec.com/server1.example_ec.com.pem
27 tls_privatekey =  DRSA/server1.example.com/server1.example.com.unlocked.key \
28               : DECDSA/server1.example_ec.com/server1.example_ec.com.unlocked.key
29
30 .ifndef CONTROL
31 tls_ocsp_file =   PEM DIR/tmp/ocsp/triple.ocsp.pem \
32               : DER DECDSA/server1.example_ec.com/server1.example_ec.com.ocsp.good.resp
33 .else
34 tls_ocsp_file =   PEM DIR/tmp/ocsp/double_r.ocsp.pem \
35               : DER DECDSA/server1.example_ec.com/server1.example_ec.com.ocsp.good.resp
36 .endif
37
38
39 .ifdef _HAVE_GNUTLS
40 tls_require_ciphers = ${if eq {LIMIT}{TLS1.2} {NORMAL:!VERS-ALL:+VERS-TLS1.2} {}}
41 .endif
42
43 # ------ ACL ------
44
45 begin acl
46
47 check_mail:
48   accept   logwrite = acl_mail: ocsp in status: $tls_in_ocsp \
49     (${listextract {${eval:$tls_in_ocsp+1}} \
50                 {notreq:notresp:vfynotdone:failed:verified}})
51
52 check_recipient:
53   accept
54
55
56 # ----- Routers -----
57
58 begin routers
59
60 client:
61   driver = manualroute
62   condition = ${if !eq {SERVER}{server}}
63   route_list = * 127.0.0.1
64   self = send
65   transport = remote_delivery
66   errors_to = ""
67
68 srvr:
69   driver = accept
70   retry_use_local_part
71   transport = local_delivery
72
73
74 # ----- Transports -----
75
76 begin transports
77
78 remote_delivery:
79   driver =                      smtp
80   port =                        PORT_D
81   hosts_require_tls =           *
82 .ifdef _HAVE_GNUTLS
83
84   tls_require_ciphers =         ${if eq {LIMIT}{TLS1.2} \
85                                   {NONE:\
86                                     ${if eq {OPT}{rsa} \
87                                       {+SIGN-RSA-SHA256:+VERS-TLS-ALL:+ECDHE-RSA:+DHE-RSA:+RSA} \
88                                       {+SIGN-ECDSA-SHA512:+VERS-TLS-ALL:+KX-ALL}}\
89                                   :+CIPHER-ALL:+MAC-ALL:+COMP-NULL:+CURVE-ALL:+CTYPE-X509} \
90                                   {}}
91   tls_verify_certificates =     CADIR/\
92                                   ${if eq {OPT}{rsa} \
93                                     {example.com/server1.example.com} \
94                                     {example_ec.com/server1.example_ec.com}}\
95                                 /ca_chain.pem
96 .endif
97   hosts_require_ocsp =          *
98   tls_verify_cert_hostnames =   :
99
100 local_delivery:
101   driver = appendfile
102   file = DIR/test-mail/$local_part
103   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
104   user = CALLER
105
106 # End