1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/tests/chains/scenarios/anypolicy.cfg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,77 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +scenario AnyPolicy 1.9 + 1.10 +entity RootCA 1.11 + type Root 1.12 + 1.13 +entity CA1 1.14 + type Intermediate 1.15 + issuer RootCA 1.16 + policy any 1.17 + 1.18 +entity CA2 1.19 + type Intermediate 1.20 + issuer CA1 1.21 + policy OID.1.0 1.22 + inhibit 0 1.23 + 1.24 +entity CA3 1.25 + type Intermediate 1.26 + issuer CA1 1.27 + policy OID.1.0 1.28 + 1.29 +entity User1 1.30 + type EE 1.31 + issuer CA2 1.32 + policy OID.1.0 1.33 + 1.34 +entity User2 1.35 + type EE 1.36 + issuer CA2 1.37 + policy any 1.38 + 1.39 +entity User3 1.40 + type EE 1.41 + issuer CA3 1.42 + policy any 1.43 + 1.44 +db All 1.45 + 1.46 +import RootCA:: 1.47 +import CA1:RootCA: 1.48 +import CA2:CA1: 1.49 +import CA3:CA1: 1.50 + 1.51 +verify User1:CA2 1.52 + trust RootCA 1.53 + policy OID.1.0 1.54 + result pass 1.55 + 1.56 +verify User1:CA2 1.57 + trust RootCA 1.58 + policy OID.2.0 1.59 + result fail 1.60 + 1.61 +verify User2:CA2 1.62 + trust RootCA 1.63 + policy OID.1.0 1.64 + result fail 1.65 + 1.66 +verify User2:CA2 1.67 + trust RootCA 1.68 + policy OID.2.0 1.69 + result fail 1.70 + 1.71 +verify User3:CA3 1.72 + trust RootCA 1.73 + policy OID.1.0 1.74 + result pass 1.75 + 1.76 +verify User3:CA3 1.77 + trust RootCA 1.78 + policy OID.2.0 1.79 + result fail 1.80 +