security/nss/tests/cert/certext.txt

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:3672a89c8b8d
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/.
4 #
5 # File syntax:
6 # '#' comments.
7 # If the line starts from '!'('! TEST_N Test Name String'),
8 # then 'Test Name String' will be the name of a test(starting
9 # from second space till the rest of the line).
10 # All uncommented lines are hard codded answers to certutil
11 # extension questions.
12 # Line '= N string1|string2|string3': '=' is a stop sign
13 # of certutil inputs and start of the test. 'N' is the number
14 # of extension that will be tested. 'string1|string2|string3'
15 # are grep patterns for test result verification. '_' in stringN
16 # will be replaced to a space.
17 # ################################################################
18 ! TEST_1 Certificate Key Usage Extension
19 0
20 1
21 2
22 3
23 4
24 5
25 6
26 10
27 n
28 = 1 Certificate_Key_Usage|Digital_Signature|Non-Repudiation|Key_Encipherment|Data_Encipherment|Key_Agreement|Certificate_Signing|CRL_Signing
29 # ################################################################
30 ! TEST_2 Certificate Key Usage Extension
31 0
32 1
33 2
34 3
35 4
36 5
37 6
38 10
39 y
40 = 1 Certificate_Key_Usage|Digital_Signature|Critical:_True
41 # ################################################################
42 ! TEST_3 Certificate Basic Constraints Extension
43 y
44 -1
45 n
46 = 2 Name:_Certificate_Basic_Constraints|Data:_Is_a_CA_with_no_maximum
47 # ################################################################
48 ! TEST_4 Certificate Basic Constraints Extension
49 n
50 -1
51 y
52 = 2 Name:_Certificate_Basic_Constraints|Data:_Is_not_a_CA|Critical:_True
53 # ################################################################
54 ! TEST_5 Certificate Authority Key Identifier Extension
55 y
56 12341235123
57
58
59 y
60 = 3 Name:_Certificate_Authority_Key_Identifier|Critical:_True|Key_ID:|12341235123
61 # ################################################################
62 ! TEST_6 Certificate Authority Key Identifier Extension
63 y
64
65 3
66 test.com
67
68 214123
69 y
70 = 3 Name:_Certificate_Authority_Key_Identifier|Critical:_True|Issuer:|DNS_name:_"test.com"|Serial_Number:|214123
71 # ################################################################
72 ! TEST_7 CRL Distribution Points Extension
73 1
74 2
75 rfc822@name.tld
76 3
77 test.com
78 8
79 1.2.3.4
80 9
81 OID.0.2.213
82 10
83 0
84 10
85 n
86 n
87 = 4 Name:_CRL_Distribution_Points|rfc822@name.tld
88 # #################################################################
89 ! TEST_8 CRL Distribution Points Extension
90 2
91 SN=asdfsdf
92 4
93 3
94 test.com
95 10
96 n
97 n
98 = 4 Name:_CRL_Distribution_Points|asdfsdf|Reasons:|DNS_name:_"test.com"
99 # ################################################################
100 ! TEST_9 Certificate Type Extension
101 0
102 1
103 2
104 10
105 n
106 = 5 Name:_Certificate_Type|Data:_<SSL_Client,SSL_Server,S/MIME>
107 # ################################################################
108 ! TEST_10 Extended Key Usage Extension
109 0
110 1
111 2
112 3
113 4
114 5
115 6
116 10
117 y
118 = 6 Name:_Extended_Key_Usage|Critical:_True|TLS_Web_Server_Authentication_Certificate|TLS_Web_Client_Authentication_Certificate|Code_Signing_Certificate|E-Mail_Protection_Certificate|Time_Stamping_Certifcate|OCSP_Responder_Certificate|Strong_Crypto_Export_Approved
119 # ################################################################
120 ! TEST_11 Certificate Key Usage Extension
121
122 1
123 2
124 3
125 4
126 5
127 6
128 10
129 n
130 = 1 Certificate_Key_Usage|!Digital_Signature|Non-Repudiation|Key_Encipherment|Data_Encipherment|Key_Agreement|Certificate_Signing|CRL_Signing

mercurial