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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/.
     5 scenario AnyPolicy
     7 entity RootCA
     8   type Root
    10 entity CA1
    11   type Intermediate
    12   issuer RootCA
    13   policy any
    15 entity CA2
    16   type Intermediate
    17   issuer CA1
    18   policy OID.1.0
    19   inhibit 0
    21 entity CA3
    22   type Intermediate
    23   issuer CA1
    24   policy OID.1.0
    26 entity User1
    27   type EE
    28   issuer CA2
    29   policy OID.1.0
    31 entity User2
    32   type EE
    33   issuer CA2
    34   policy any
    36 entity User3
    37   type EE
    38   issuer CA3
    39   policy any
    41 db All
    43 import RootCA::
    44 import CA1:RootCA:
    45 import CA2:CA1:
    46 import CA3:CA1:
    48 verify User1:CA2
    49   trust RootCA
    50   policy OID.1.0
    51   result pass
    53 verify User1:CA2
    54   trust RootCA
    55   policy OID.2.0
    56   result fail
    58 verify User2:CA2
    59   trust RootCA
    60   policy OID.1.0
    61   result fail
    63 verify User2:CA2
    64   trust RootCA
    65   policy OID.2.0
    66   result fail
    68 verify User3:CA3
    69   trust RootCA
    70   policy OID.1.0
    71   result pass
    73 verify User3:CA3
    74   trust RootCA
    75   policy OID.2.0
    76   result fail

mercurial