File: crt_store.vtc

package info (click to toggle)
haproxy 3.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 24,704 kB
  • sloc: ansic: 276,528; sh: 3,630; xml: 1,756; python: 1,345; makefile: 1,167; perl: 168; cpp: 21
file content (41 lines) | stat: -rw-r--r-- 920 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#REGTEST_TYPE=devel
varnishtest "Test the crt-store section"
feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(3.0-dev7)'"
feature cmd "$HAPROXY_PROGRAM -cc 'feature(OPENSSL)'"
feature ignore_unknown_macro

#
# Basic check for the crt-store, ensure that loading works and that we can't
# load a crt which was used before
#


haproxy h1 -arg -V -conf-OK {
    global
    .if feature(THREAD)
        thread-groups 1
    .endif

    crt-store
       load crt "${testdir}/common.crt" key "${testdir}/common.key"

    defaults
        timeout client 30s
        timeout server 30s
        timeout connect 30s

    listen ssl-lst
        bind "${tmpdir}/ssl.sock" ssl crt ${testdir}/common.crt strict-sni

}

haproxy h2 -arg -V -conf-BAD {} {

    listen ssl-lst
        bind "${tmpdir}/ssl.sock" ssl crt ${testdir}/common.pem strict-sni

    crt-store
       load crt "${testdir}/common.pem" key "${testdir}/common.key"

}