source: mod_gnutls/test/tests/12_cgi_variables/test.yaml

mod_gnutls/0.12.0
Last change on this file was 4b9e34a, checked in by Fiona Klute <fiona.klute@…>, 13 months ago

Unify tests for CGI variables with and without client certificate

Both can work with the same server configuration, so it makes sense to
start only one server instance.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1- !connection
2  description: >-
3    The server requests but does not require client
4    authentication. The client authenticates, and the CGI script can
5    include certificate details in the output using environment
6    variables.
7  gnutls_params:
8    - x509cafile=authority/x509.pem
9    - x509keyfile=authority/client/secret.key
10    - x509certfile=authority/client/x509.pem
11  actions:
12    - !request
13      path: /dump.cgi
14      expect:
15        status: 200
16        body:
17          contains:
18            - |
19              ----Certificate:----
20              -----BEGIN CERTIFICATE-----
21            - |
22              -----END CERTIFICATE-----
23
24
25              ----Verification Status:----
26              SUCCESS
27
28              ----SubjectAltName:----
29              RFC822NAME:test0@modgnutls.test
30
31- !connection
32  description: >-
33    The server requests but does not require client
34    authentication. The client does not authenticate, and the CGI
35    script can note that in the output using environment variables.
36  gnutls_params:
37    - x509cafile=authority/x509.pem
38  actions:
39    - !request
40      path: /dump.cgi
41      expect:
42        status: 200
43        body:
44          contains: |
45            ----Certificate:----
46
47
48            ----Verification Status:----
49            NONE
50
51            ----SubjectAltName:----
Note: See TracBrowser for help on using the repository browser.