source: mod_gnutls/test/tests/10_client_verification/test.yaml

Last change on this file was 9bffdec, checked in by Fiona Klute <fiona.klute@…>, 11 months ago

Rename unified client authentication test

It tests a lot more than "basic" client auth now. ;-)

  • Property mode set to 100644
File size: 1.2 KB
Line 
1- !connection
2  description: >-
3    The server requires authentication, a client presenting a valid
4    certificate gets a good response.
5  gnutls_params:
6    - x509cafile=authority/x509.pem
7    - x509keyfile=authority/client/secret.key
8    - x509certfile=authority/client/x509.pem
9  actions:
10    - !request
11      path: /test.txt
12      expect:
13        status: 200
14        body:
15          exactly: |
16            test
17
18- !connection
19  description: >-
20    The server requires authentication, a client without a certificate
21    is rejected.
22  gnutls_params:
23    - x509cafile=authority/x509.pem
24  actions:
25    - !request
26      path: /test.txt
27      expect:
28        reset: yes
29
30- !connection
31  description: >-
32    The server requires authentication, a client with an untrusted
33    certificate receives a 403 Forbidden response.
34  gnutls_params:
35    - x509cafile=authority/x509.pem
36    - x509certfile=rogueca/rogueclient/x509.pem
37    - x509keyfile=rogueca/rogueclient/secret.key
38  actions:
39    - !request
40      path: /test.txt
41      expect:
42        status: 403
43        body:
44          contains:
45            - 'Forbidden'
46            - "You don't have permission to access this resource."
Note: See TracBrowser for help on using the repository browser.