Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | scenario explicitPolicy |
michael@0 | 6 | |
michael@0 | 7 | entity Root |
michael@0 | 8 | type Root |
michael@0 | 9 | |
michael@0 | 10 | entity nonEVCA |
michael@0 | 11 | type Intermediate |
michael@0 | 12 | issuer Root |
michael@0 | 13 | |
michael@0 | 14 | entity EVCA |
michael@0 | 15 | type Intermediate |
michael@0 | 16 | issuer Root |
michael@0 | 17 | policy OID.1.0 |
michael@0 | 18 | |
michael@0 | 19 | entity otherEVCA |
michael@0 | 20 | type Intermediate |
michael@0 | 21 | issuer Root |
michael@0 | 22 | policy OID.2.0 |
michael@0 | 23 | |
michael@0 | 24 | entity validEV |
michael@0 | 25 | type EE |
michael@0 | 26 | issuer EVCA |
michael@0 | 27 | policy OID.1.0 |
michael@0 | 28 | |
michael@0 | 29 | entity invalidEV |
michael@0 | 30 | type EE |
michael@0 | 31 | issuer nonEVCA |
michael@0 | 32 | policy OID.1.0 |
michael@0 | 33 | |
michael@0 | 34 | entity wrongEVOID |
michael@0 | 35 | type EE |
michael@0 | 36 | issuer otherEVCA |
michael@0 | 37 | policy OID.1.0 |
michael@0 | 38 | |
michael@0 | 39 | db All |
michael@0 | 40 | |
michael@0 | 41 | verify validEV:EVCA |
michael@0 | 42 | cert EVCA:Root |
michael@0 | 43 | cert Root: |
michael@0 | 44 | trust Root: |
michael@0 | 45 | policy OID.1.0 |
michael@0 | 46 | result pass |
michael@0 | 47 | |
michael@0 | 48 | verify invalidEV:nonEVCA |
michael@0 | 49 | cert nonEVCA:Root |
michael@0 | 50 | cert Root: |
michael@0 | 51 | trust Root: |
michael@0 | 52 | policy OID.1.0 |
michael@0 | 53 | result fail |
michael@0 | 54 | |
michael@0 | 55 | verify wrongEVOID:otherEVCA |
michael@0 | 56 | cert otherEVCA:Root |
michael@0 | 57 | cert Root: |
michael@0 | 58 | trust Root: |
michael@0 | 59 | policy OID.1.0 |
michael@0 | 60 | result fail |
michael@0 | 61 | |
michael@0 | 62 | import Root::C,C,C |
michael@0 | 63 | |
michael@0 | 64 | verify validEV:EVCA |
michael@0 | 65 | cert EVCA:Root |
michael@0 | 66 | policy OID.1.0 |
michael@0 | 67 | result pass |
michael@0 | 68 | |
michael@0 | 69 | verify invalidEV:nonEVCA |
michael@0 | 70 | cert nonEVCA:Root |
michael@0 | 71 | policy OID.1.0 |
michael@0 | 72 | result fail |
michael@0 | 73 | |
michael@0 | 74 | verify wrongEVOID:otherEVCA |
michael@0 | 75 | cert otherEVCA:Root |
michael@0 | 76 | policy OID.1.0 |
michael@0 | 77 | result fail |
michael@0 | 78 |