1 This file describes the tests for the SSL Trust Policy.
3 The password for the CA p12 is "Password4TestCA"
8 SAN = Subject Alternative Name (specifically the DNSName general name for these tests)
9 EKU = Extended Key Usage
13 Description: Hostname does not match CN or SAN.
14 Certificate: InvalidHostnameTest1.cer
15 Hostname: test.apple.com
19 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 1
23 Description: Hostname matches CN but not SAN.
24 Certificate: InvalidHostnameTest2.cer
25 Hostname: test.apple.com
29 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 2
33 Description: Hostname matches CN. SAN extension is not present.
34 Certificate: ValidHostnameTest3.cer
35 Hostname: test.apple.com
38 Expected Result:SUCCEED
39 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 3
43 Description: Hostname matches SAN but not CN.
44 Certificate: ValidHostnameTest4.cer
45 Hostname: test.apple.com
48 Expected Result:SUCCEED
49 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 4
53 Description: Wildcard not in the left-most label. Per RFC 2818, hostname matches. Per RFC 6125 hostname doesn't match.
54 Certificate: InvalidWildcardTest5Test6.cer
55 Hostname: test.bad.apple.com
60 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 5, Bullet 1
64 Description: Wildcard not in left-most label. Hostname doesn't match.
65 Certificate: InvalidWildcardTest5Test6.cer
66 Hostname: test.apple.com
73 Description: Wildcard in left-most label. Hostname matches.
74 Certificate: ValidWildcardTest7Test8Test9.cer
75 Hostname: good.test.apple.com
78 Expected Result:SUCCEED
79 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 5, Bullet 2
83 Description: Wildcard in left-most label. Hostname doesn't contain label for wildcard.
84 Certificate: ValidWildcardTest7Test8Test9.cer
85 Hostname: test.apple.com
89 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 5, Bullet 2
93 Description: Wildcard in left-most label. Hostname contains 2 labels for wildcard.
94 Certificate: ValidWildcardTest7Test8Test9.cer
95 Hostname: one.bad.test.apple.com
99 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 5, Bullet 2
103 Description: Wildcard immediately preceding top-level-domain.
104 Certificate: InvalidWildcardTest10.cer
109 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 5, Bullet 3
113 Description: Wildcard immediately preceding a public suffix with 2 domain levels.
114 Certificate: InvalidWildcardTest11.cer
115 Hostname: apple.co.uk
119 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 5, Bullet 3
123 Description: Wildcard in the middle of a label.
124 Certificate: InvalidWildcardTest12.cer
125 Hostname: test.apple.com
129 Notes: Technically this is allowed per specifications.
133 Description: Wildcard at the end of a label preceding top-level domain. Hostname has no letter for wildcard.
134 Certificate: InvalidWildcardTest13Test14.cer
139 Notes: Technically this is allowed per specifications, but we think this allows evil.
143 Description: Wildcard at the end of a label preceding top-level domain. Hostname has letters for the wildcard.
144 Certificate: InvalidWildcardTest13Test14.cer
145 Hostname: appleseed.com
149 Notes: Technically this is allowed per specifications.
153 Description: Multiple wildcards in the DNSName.
154 Certificate: InvalidWildcardTest15.cer
155 Hostname: one.bad.apple.com
162 Description: EKU present but no Server Authentication OID.
163 Certificate: InvalidEKUTest16.cer
164 Hostname: test.apple.com
167 EKU: Email Protection
169 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.1, Assurance Activity Test 2
173 Description: No EKU present.
174 Certificate: ValidEKUTest17.cer
175 Hostname: test.apple.com
179 Expected Result:SUCCEED
183 Description: Hostname has trailing label.
184 Certificate: ValidHostnameTest18Test19Test20.cer
185 Hostname: test.apple.com.test
186 CN: Test18 Test19 Test20
192 Description: Hostname has trailing '.'.
193 Certificate: ValidHostnameTest18Test19Test20.cer
194 Hostname: test.apple.com.
195 CN: Test18 Test19 Test20
197 Expected Result:SUCCEED
198 Notes: Allowed as a mechanism to force TLS renegotiation.
202 Description: Hostname has preceding '.'.
203 Certificate: ValidHostnameTest18Test19Test20.cer
204 Hostname: .test.apple.com
205 CN: Test18 Test19 Test20
211 Description: SAN has trailing label.
212 Certificate: ValidHostnameTest21.cer
213 Hostname: test.apple.com
215 SAN: test.apple.com.test
220 Description: SAN extension is present but doesn't contain DNSName.
221 Certificate: InvalidHostnameTest22.cer
222 Hostname: test.apple.com
224 SAN: RFC822Name:test@apple.com
229 Description: SAN has trailing '.'.
230 Certificate: InvalidHostnameTest23.cer
231 Hostname: test.apple.com
238 Description: SAN has preceding '.'.
239 Certificate: InvalidHostnameTest24.cer
240 Hostname: test.apple.com
247 Description: Wildcard at the beginning of label. Hostname has letter for wildcard.
248 Certificate: InvalidWildcardTest25Test26.cer
249 Hostname: test.apple.com
253 Notes: Technically this is allowed per specifications.
257 Description: Wilcard at the beginning of label. Hostname has no letter for wildcard.
258 Certificate: InvalidWildcardTest25Test26.cer
259 Hostname: est.apple.com
263 Notes: Technically this is allowed per specifications.
267 Description: Wildcard at the end of label. Hostname has letter for wildcard.
268 Certificate: InvalidWildcardTest27Test28.cer
269 Hostname: test.apple.com
273 Notes: We used to have an inconsistent approach to partial-label wildcards
274 (see Tests 12, 13, 14, 25, and 26); now, we disallow all partial-label
279 Description: Wildcard at the end of label. Hostname has not letter for wildcard.
280 Certificate: InvalidWildcardTest27Test28.cer
281 Hostname: tes.apple.com
285 Notes: See notes for Test 27.
289 Description: Hostname matches CN, case insensitive
290 Certificate: ValidHostnameTest3.cer
291 Hostname: TEST.apple.com
294 Expected Result:SUCCEED
295 Notes: <rdar://problem/26555272>
299 Description: Wildcards only - 1 label.
300 Certificate: InvalidWildcardTest30.cer
308 Description: Wildcards only - 2 labels
309 Certificate: InvalidWildcardTest31.cer
317 Description: Wildcards only - 3 labels
318 Certificate: InvalidWildcardTest32.cer
319 Hostname: test.apple.com
326 Description: Wildcards only - 1 label, trailing '.'
327 Certificate: InvalidWildcardTest33.cer
335 Description: Wildcards only - 1 label, preceding '.'
336 Certificate: InvalidWildcardTest34.cer
344 Description: Wildcards only - 1 label to 2 labels
345 Certificate: InvalidWildcardTest30.cer
353 Description: Wildcards only - 1 label to 2 labels, trailing '.'
354 Certificate: InvalidWildcardTest33.cer
362 Description: Wildcards only - 1 label to 2 labels, preceding '.'
363 Certificate: InvalidWildcardTest34.cer