source: mod_gnutls/test/tests/10_basic_client_verification/test.yaml @ 3943cd1

asyncio
Last change on this file since 3943cd1 was 3943cd1, checked in by Fiona Klute <fiona.klute@…>, 13 months ago

Test client auth with untrusted certificate on shared instance

Basically the same as 2d5cf4e80dcebab5e8a35e8b2c3f8a7e13697fdb, except
that the now integrated test uses an untrusted client certificate
instead of none at all.

  • 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.