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
110 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 5, Bullet 3
114 Description: Wildcard immediately preceding a public suffix with 2 domain levels.
115 Certificate: InvalidWildcardTest11.cer
116 Hostname: apple.co.uk
120 Actual Result: SUCCEED
121 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.2, Assurance Activity Test 5, Bullet 3
125 Description: Wildcard in the middle of a label.
126 Certificate: InvalidWildcardTest12.cer
127 Hostname: test.apple.com
134 Description: Wildcard at the end of a label. Hostname has no letter for wildcard.
135 Certificate: InvalidWildcardTest13Test14.cer
141 Notes: Technically this is allowed per specifications, but we think this allows evil.
145 Description: Wildcard at the end of a label. Hostname has letters for the wildcard.
146 Certificate: InvalidWildcardTest13Test14.cer
147 Hostname: appleseed.com
152 Notes: Not clear whether we should really allow this.
156 Description: Multiple wildcards in the DNSName.
157 Certificate: InvalidWildcardTest15.cer
158 Hostname: one.bad.apple.com
165 Description: EKU present but no Server Authentication OID.
166 Certificate: InvalidEKUTest16.cer
167 Hostname: test.apple.com
170 EKU: Email Protection
172 Notes: https://www.niap-ccevs.org/pp/pp_md_v2.0.pdf, FCS_TLSC_EXT.2.1, Assurance Activity Test 2
176 Description: No EKU present.
177 Certificate: ValidEKUTest17.cer
178 Hostname: test.apple.com
182 Expected Result:SUCCEED
186 Description: Hostname has trailing label.
187 Certificate: ValidHostnameTest18Test19Test20.cer
188 Hostname: test.apple.com.test
189 CN: Test18 Test19 Test20
195 Description: Hostname has trailing '.'.
196 Certificate: ValidHostnameTest18Test19Test20.cer
197 Hostname: test.apple.com.
198 CN: Test18 Test19 Test20
204 Description: Hostname has preceding '.'.
205 Certificate: ValidHostnameTest18Test19Test20.cer
206 Hostname: .test.apple.com
207 CN: Test18 Test19 Test20
213 Description: SAN has trailing label.
214 Certificate: ValidHostnameTest21.cer
215 Hostname: test.apple.com
217 SAN: test.apple.com.test
222 Description: SAN extension is present but doesn't contain DNSName.
223 Certificate: InvalidHostnameTest22.cer
224 Hostname: test.apple.com
226 SAN: RFC822Name:test@apple.com
231 Description: SAN has trailing '.'.
232 Certificate: InvalidHostnameTest23.cer
233 Hostname: test.apple.com
240 Description: SAN has preceding '.'.
241 Certificate: InvalidHostnameTest24.cer
242 Hostname: test.apple.com
249 Description: Wildcard at the beginning of label. Hostname has letter for wildcard.
250 Certificate: InvalidWildcardTest25Test26.cer
251 Hostname: test.apple.com
258 Description: Wilcard at the beginning of label. Hostname has no letter for wildcard.
259 Certificate: InvalidWildcardTest25Test26.cer
260 Hostname: est.apple.com