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

http://github.com/zpao/v8monkey · Config · 219 lines · 191 code · 28 blank · 0 comment · 0 complexity · 0620d2d1abcdfe750b0afc75153df125 MD5 · raw file

  1. # ***** BEGIN LICENSE BLOCK *****
  2. # Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3. #
  4. # The contents of this file are subject to the Mozilla Public License Version
  5. # 1.1 (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. # http://www.mozilla.org/MPL/
  8. #
  9. # Software distributed under the License is distributed on an "AS IS" basis,
  10. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11. # for the specific language governing rights and limitations under the
  12. # License.
  13. #
  14. # The Original Code is the Network Security Services (NSS)
  15. #
  16. # The Initial Developer of the Original Code is Sun Microsystems, Inc.
  17. # Portions created by the Initial Developer are Copyright (C) 2009
  18. # the Initial Developer. All Rights Reserved.
  19. #
  20. # Contributor(s):
  21. # Slavomir Katuscak <slavomir.katuscak@sun.com>, Sun Microsystems
  22. #
  23. # Alternatively, the contents of this file may be used under the terms of
  24. # either the GNU General Public License Version 2 or later (the "GPL"), or
  25. # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  26. # in which case the provisions of the GPL or the LGPL are applicable instead
  27. # of those above. If you wish to allow use of your version of this file only
  28. # under the terms of either the GPL or the LGPL, and not to allow others to
  29. # use your version of this file under the terms of the MPL, indicate your
  30. # decision by deleting the provisions above and replace them with the notice
  31. # and other provisions required by the GPL or the LGPL. If you do not delete
  32. # the provisions above, a recipient may use your version of this file under
  33. # the terms of any one of the MPL, the GPL or the LGPL.
  34. #
  35. # ***** END LICENSE BLOCK *****
  36. scenario BridgeWithPolicyExtensionAndMapping
  37. entity Army
  38. type Root
  39. entity Navy
  40. type Root
  41. entity CAArmy
  42. type Intermediate
  43. issuer Army
  44. policy OID.1.0
  45. policy OID.1.1
  46. entity CANavy
  47. type Intermediate
  48. issuer Navy
  49. policy OID.2.0
  50. policy OID.2.1
  51. entity Bridge
  52. type Bridge
  53. issuer CAArmy
  54. policy OID.1.0
  55. policy OID.1.1
  56. mapping OID.1.1:OID.2.1
  57. issuer CANavy
  58. policy OID.2.0
  59. policy OID.2.1
  60. mapping OID.2.1:OID.1.1
  61. entity CA1
  62. type Intermediate
  63. issuer Bridge
  64. policy OID.1.1
  65. policy OID.2.1
  66. entity CA2
  67. type Intermediate
  68. issuer Bridge
  69. policy OID.1.0
  70. policy OID.2.0
  71. entity EE1
  72. type EE
  73. issuer CA1
  74. policy OID.2.1
  75. entity EE2
  76. type EE
  77. issuer CA2
  78. policy OID.2.0
  79. testdb
  80. verify EE1:CA1
  81. cert CA1:Bridge
  82. cert Bridge:CAArmy
  83. cert CAArmy:Army
  84. trust Army:
  85. policy OID.1.0
  86. result fail
  87. verify EE1:CA1
  88. cert CA1:Bridge
  89. cert Bridge:CAArmy
  90. cert CAArmy:Army
  91. trust Army:
  92. policy OID.1.1
  93. result pass
  94. verify EE1:CA1
  95. cert CA1:Bridge
  96. cert Bridge:CAArmy
  97. cert CAArmy:Army
  98. trust Army:
  99. policy OID.2.0
  100. result fail
  101. verify EE1:CA1
  102. cert CA1:Bridge
  103. cert Bridge:CAArmy
  104. cert CAArmy:Army
  105. trust Army:
  106. policy OID.2.1
  107. result fail
  108. verify EE1:CA1
  109. cert CA1:Bridge
  110. cert Bridge:CANavy
  111. cert CANavy:Navy
  112. trust Navy:
  113. policy OID.1.0
  114. result fail
  115. verify EE1:CA1
  116. cert CA1:Bridge
  117. cert Bridge:CANavy
  118. cert CANavy:Navy
  119. trust Navy:
  120. policy OID.1.1
  121. result fail
  122. verify EE1:CA1
  123. cert CA1:Bridge
  124. cert Bridge:CANavy
  125. cert CANavy:Navy
  126. trust Navy:
  127. policy OID.2.0
  128. result fail
  129. verify EE1:CA1
  130. cert CA1:Bridge
  131. cert Bridge:CANavy
  132. cert CANavy:Navy
  133. trust Navy:
  134. policy OID.2.1
  135. result fail
  136. verify EE2:CA2
  137. cert CA2:Bridge
  138. cert Bridge:CANavy
  139. cert CANavy:Navy
  140. trust Navy:
  141. policy OID.1.0
  142. result fail
  143. verify EE2:CA2
  144. cert CA2:Bridge
  145. cert Bridge:CANavy
  146. cert CANavy:Navy
  147. trust Navy:
  148. policy OID.1.1
  149. result fail
  150. verify EE2:CA2
  151. cert CA2:Bridge
  152. cert Bridge:CANavy
  153. cert CANavy:Navy
  154. trust Navy:
  155. policy OID.2.0
  156. result pass
  157. verify EE2:CA2
  158. cert CA2:Bridge
  159. cert Bridge:CANavy
  160. cert CANavy:Navy
  161. trust Navy:
  162. policy OID.2.1
  163. result fail
  164. verify EE2:CA2
  165. cert CA2:Bridge
  166. cert Bridge:CAArmy
  167. cert CAArmy:Army
  168. trust Army:
  169. policy OID.1.0
  170. result fail
  171. verify EE2:CA2
  172. cert CA2:Bridge
  173. cert Bridge:CAArmy
  174. cert CAArmy:Army
  175. trust Army:
  176. policy OID.1.1
  177. result fail
  178. verify EE2:CA2
  179. cert CA2:Bridge
  180. cert Bridge:CAArmy
  181. cert CAArmy:Army
  182. trust Army:
  183. policy OID.2.0
  184. result fail
  185. verify EE2:CA2
  186. cert CA2:Bridge
  187. cert Bridge:CAArmy
  188. cert CAArmy:Army
  189. trust Army:
  190. policy OID.2.1
  191. result fail