|
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 Mapping2 |
|
6 |
|
7 entity Root |
|
8 type Root |
|
9 |
|
10 entity CA1 |
|
11 type Intermediate |
|
12 issuer Root |
|
13 policy OID.1.0 |
|
14 |
|
15 entity CA2 |
|
16 type Intermediate |
|
17 issuer CA1 |
|
18 policy OID.1.0 |
|
19 mapping OID.1.0:OID.1.1 |
|
20 |
|
21 entity CA3 |
|
22 type Intermediate |
|
23 issuer CA2 |
|
24 policy OID.1.1 |
|
25 |
|
26 entity User |
|
27 type EE |
|
28 issuer CA3 |
|
29 policy OID.1.1 |
|
30 |
|
31 db All |
|
32 |
|
33 import Root:: |
|
34 import CA1:Root: |
|
35 import CA2:CA1: |
|
36 import CA3:CA2: |
|
37 |
|
38 verify User:CA3 |
|
39 trust Root |
|
40 policy OID.1.0 |
|
41 # should fail, bug 430859 |
|
42 result pass |
|
43 |
|
44 verify User:CA3 |
|
45 trust Root |
|
46 policy OID.1.1 |
|
47 # should pass, bug 430859 |
|
48 result fail |
|
49 |
|
50 verify User:CA3 |
|
51 trust CA1 |
|
52 policy OID.1.0 |
|
53 # should fail, bug 430859 |
|
54 result pass |
|
55 |
|
56 verify User:CA3 |
|
57 trust CA1 |
|
58 policy OID.1.1 |
|
59 # should pass, bug 430859 |
|
60 result fail |
|
61 |
|
62 verify User:CA3 |
|
63 trust CA2 |
|
64 policy OID.1.0 |
|
65 result fail |
|
66 |
|
67 verify User:CA3 |
|
68 trust CA2 |
|
69 policy OID.1.1 |
|
70 result pass |
|
71 |