comparison: security/nss/tests/chains/scenarios/anypolicy.cfg
security/nss/tests/chains/scenarios/anypolicy.cfg
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 # This Source Code Form is subject to the terms of the Mozilla Public |
|
2 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
4 |
|
5 scenario AnyPolicy |
|
6 |
|
7 entity RootCA |
|
8 type Root |
|
9 |
|
10 entity CA1 |
|
11 type Intermediate |
|
12 issuer RootCA |
|
13 policy any |
|
14 |
|
15 entity CA2 |
|
16 type Intermediate |
|
17 issuer CA1 |
|
18 policy OID.1.0 |
|
19 inhibit 0 |
|
20 |
|
21 entity CA3 |
|
22 type Intermediate |
|
23 issuer CA1 |
|
24 policy OID.1.0 |
|
25 |
|
26 entity User1 |
|
27 type EE |
|
28 issuer CA2 |
|
29 policy OID.1.0 |
|
30 |
|
31 entity User2 |
|
32 type EE |
|
33 issuer CA2 |
|
34 policy any |
|
35 |
|
36 entity User3 |
|
37 type EE |
|
38 issuer CA3 |
|
39 policy any |
|
40 |
|
41 db All |
|
42 |
|
43 import RootCA:: |
|
44 import CA1:RootCA: |
|
45 import CA2:CA1: |
|
46 import CA3:CA1: |
|
47 |
|
48 verify User1:CA2 |
|
49 trust RootCA |
|
50 policy OID.1.0 |
|
51 result pass |
|
52 |
|
53 verify User1:CA2 |
|
54 trust RootCA |
|
55 policy OID.2.0 |
|
56 result fail |
|
57 |
|
58 verify User2:CA2 |
|
59 trust RootCA |
|
60 policy OID.1.0 |
|
61 result fail |
|
62 |
|
63 verify User2:CA2 |
|
64 trust RootCA |
|
65 policy OID.2.0 |
|
66 result fail |
|
67 |
|
68 verify User3:CA3 |
|
69 trust RootCA |
|
70 policy OID.1.0 |
|
71 result pass |
|
72 |
|
73 verify User3:CA3 |
|
74 trust RootCA |
|
75 policy OID.2.0 |
|
76 result fail |
|
77 |
