GnuTLS: Move to more-modern stapling API
[exim.git] / test / confs / 5653
1 # Exim test configuration 5652
2 # OCSP stapling, server, multiple certs
3
4 .include DIR/aux-var/tls_conf_prefix
5
6 primary_hostname = server1.example.com
7
8 # ----- Main settings -----
9
10 acl_smtp_mail = check_mail
11 acl_smtp_rcpt = check_recipient
12
13 log_selector = +tls_peerdn
14
15 queue_only
16 queue_run_in_order
17
18 tls_advertise_hosts = *
19
20 CADIR = DIR/aux-fixed/exim-ca
21 DRSA = CADIR/example.com
22 DECDSA = CADIR/example_ec.com
23
24 tls_certificate = DRSA/server1.example.com/server1.example.com.pem \
25               : DECDSA/server1.example_ec.com/server1.example_ec.com.pem
26 tls_privatekey =  DRSA/server1.example.com/server1.example.com.unlocked.key \
27               : DECDSA/server1.example_ec.com/server1.example_ec.com.unlocked.key
28 tls_ocsp_file =   DRSA/server1.example.com/server1.example.com.ocsp.good.resp \
29               : DECDSA/server1.example_ec.com/server1.example_ec.com.ocsp.good.resp
30
31
32 tls_require_ciphers = NORMAL:!VERS-ALL:+VERS-TLS1.2:+VERS-TLS1.0
33
34 # ------ ACL ------
35
36 begin acl
37
38 check_mail:
39   accept   logwrite = acl_mail: ocsp in status: $tls_in_ocsp \
40     (${listextract {${eval:$tls_in_ocsp+1}} \
41                 {notreq:notresp:vfynotdone:failed:verified}})
42
43 check_recipient:
44   accept
45
46
47 # ----- Routers -----
48
49 begin routers
50
51 client:
52   driver = manualroute
53   condition = ${if !eq {SERVER}{server}}
54   route_list = * 127.0.0.1
55   self = send
56   transport = remote_delivery
57   errors_to = ""
58
59 srvr:
60   driver = accept
61   retry_use_local_part
62   transport = local_delivery
63
64
65 # ----- Transports -----
66
67 begin transports
68
69 remote_delivery:
70   driver =                      smtp
71   port =                        PORT_D
72   hosts_require_tls =           *
73   tls_require_ciphers =         OPT
74   hosts_require_ocsp =          *
75   tls_verify_certificates =     CERT
76   tls_verify_cert_hostnames =   :
77
78 local_delivery:
79   driver = appendfile
80   file = DIR/test-mail/$local_part
81   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
82   user = CALLER
83
84 # End