security/nss/tests/chains/scenarios/mapping.cfg

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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

mercurial