|
1 //! unifiedcertstore2-conf2.txt |
|
2 //! |
|
3 //! New tests are added to the existing test scripts to test certificate addition, removal, setapplication |
|
4 //! and settrust which required in PREQ226 MIDP 2.0 support. |
|
5 //! These tests need to have taddtionalstores enabled. |
|
6 |
|
7 // Note: The in-source test tag is only added to the new tests for PREQ226. The tests without test tag is the existing tests |
|
8 // in the certstore component, which are used to set up the environment needed by the PREQ226 tests. |
|
9 |
|
10 //5.1 Test cases for single file-based writable certificate store |
|
11 |
|
12 //5.1.1 Successfull addition, listing and retrieval of certificates (X.509) |
|
13 <action> |
|
14 <actionname>No Test,Opening a CertificateAppInfoManager</actionname> |
|
15 <actiontype>initappmanager</actiontype> |
|
16 <actionbody></actionbody> |
|
17 <actionresult> |
|
18 <return>KErrNone</return> |
|
19 </actionresult> |
|
20 </action> |
|
21 |
|
22 <action> |
|
23 <actionname>No Test,Adding client A1</actionname> |
|
24 <actiontype>addclient</actiontype> |
|
25 <actionbody> |
|
26 <name>A1</name> |
|
27 <uid>1</uid> |
|
28 </actionbody> |
|
29 <actionresult> |
|
30 <return>KErrNone</return> |
|
31 </actionresult> |
|
32 </action> |
|
33 |
|
34 <action> |
|
35 <actionname>No Test,Adding client A2</actionname> |
|
36 <actiontype>addclient</actiontype> |
|
37 <actionbody> |
|
38 <name>A2</name> |
|
39 <uid>2</uid> |
|
40 </actionbody> |
|
41 <actionresult> |
|
42 <return>KErrNone</return> |
|
43 </actionresult> |
|
44 </action> |
|
45 |
|
46 <action> |
|
47 <actionname>No Test,Adding client A3</actionname> |
|
48 <actiontype>addclient</actiontype> |
|
49 <actionbody> |
|
50 <name>A3</name> |
|
51 <uid>3</uid> |
|
52 </actionbody> |
|
53 <actionresult> |
|
54 <return>KErrNone</return> |
|
55 </actionresult> |
|
56 </action> |
|
57 |
|
58 <action> |
|
59 <actionname>No Test,Adding client A4</actionname> |
|
60 <actiontype>addclient</actiontype> |
|
61 <actionbody> |
|
62 <name>A4</name> |
|
63 <uid>4</uid> |
|
64 </actionbody> |
|
65 <actionresult> |
|
66 <return>KErrNone</return> |
|
67 </actionresult> |
|
68 </action> |
|
69 |
|
70 <action> |
|
71 <actionname>No Test,Deleting the CertificateAppInfoManager</actionname> |
|
72 <actiontype>deleteappmanager</actiontype> |
|
73 <actionbody></actionbody> |
|
74 <actionresult> |
|
75 <return>KErrNone</return> |
|
76 </actionresult> |
|
77 </action> |
|
78 |
|
79 <action> |
|
80 <actionname>5.1.1.1,Opening a certificate store manager</actionname> |
|
81 <actiontype>init</actiontype> |
|
82 <actionbody> |
|
83 <mode>write</mode> |
|
84 </actionbody> |
|
85 <actionresult> |
|
86 <return>KErrNone</return> |
|
87 </actionresult> |
|
88 </action> |
|
89 |
|
90 //! @file |
|
91 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCWN5.1.1.2 |
|
92 //! @SYMTestCaseDesc The test is to add a X509 CA certficate CAX1 in the CertStore and get notification. |
|
93 //! @SYMPREQ 226 |
|
94 //! @SYMTestCasePriority High |
|
95 //! @SYMTestExpectedResults KErrNone |
|
96 <action> |
|
97 <actionname>5.1.1.2,Add the certificate CAX1 with notification</actionname> |
|
98 <actiontype>addcert</actiontype> |
|
99 <actionbody> |
|
100 <format>X509</format> |
|
101 <label>CAX1</label> |
|
102 <issuerkey></issuerkey> |
|
103 <subjectkey></subjectkey> |
|
104 <certstore>0</certstore> |
|
105 <certfile>c:\unifiedcertstore2\CAX1.cer</certfile> |
|
106 <certowner>ca</certowner> |
|
107 <ChangeNotification>1</ChangeNotification> |
|
108 </actionbody> |
|
109 <actionresult> |
|
110 <return>KErrNone</return> |
|
111 </actionresult> |
|
112 </action> |
|
113 |
|
114 //! @file |
|
115 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCWN5.1.1.3 |
|
116 //! @SYMTestCaseDesc The test is to a X509 CA certficate CAX2 in the CertStore and get notification. |
|
117 //! @SYMPREQ 226 |
|
118 //! @SYMTestCasePriority High |
|
119 //! @SYMTestExpectedResults KErrNone |
|
120 <action> |
|
121 <actionname>5.1.1.3,Add the certificate CAX2 with notification</actionname> |
|
122 <actiontype>addcert</actiontype> |
|
123 <actionbody> |
|
124 <format>X509</format> |
|
125 <label>CAX2</label> |
|
126 <issuerkey></issuerkey> |
|
127 <subjectkey></subjectkey> |
|
128 <certstore>1</certstore> |
|
129 <certfile>c:\unifiedcertstore2\CAX2.cer</certfile> |
|
130 <certowner>ca</certowner> |
|
131 <ChangeNotification>1</ChangeNotification> |
|
132 </actionbody> |
|
133 <actionresult> |
|
134 <return>KErrNone</return> |
|
135 </actionresult> |
|
136 </action> |
|
137 |
|
138 //! @file |
|
139 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCWN5.1.1.4 |
|
140 //! @SYMTestCaseDesc The test is to add a X509 CA certficate CAX3 in the CertStore and get notification. |
|
141 //! @SYMPREQ 226 |
|
142 //! @SYMTestCasePriority High |
|
143 //! @SYMTestExpectedResults KErrNone |
|
144 <action> |
|
145 <actionname>5.1.1.4,Add the certificate CAX3 with notification</actionname> |
|
146 <actiontype>addcert</actiontype> |
|
147 <actionbody> |
|
148 <format>X509</format> |
|
149 <label>CAX3</label> |
|
150 <issuerkey></issuerkey> |
|
151 <subjectkey></subjectkey> |
|
152 <certstore>0</certstore> |
|
153 <certfile>c:\unifiedcertstore2\CAX3.cer</certfile> |
|
154 <certowner>ca</certowner> |
|
155 <ChangeNotification>1</ChangeNotification> |
|
156 </actionbody> |
|
157 <actionresult> |
|
158 <return>KErrNone</return> |
|
159 </actionresult> |
|
160 </action> |
|
161 |
|
162 <action> |
|
163 <actionname>5.1.1.5,Get the list of certificates</actionname> |
|
164 <actiontype>listcert</actiontype> |
|
165 <actionbody> |
|
166 <filter> |
|
167 <ownertype>ca</ownertype> |
|
168 </filter> |
|
169 </actionbody> |
|
170 <actionresult> |
|
171 <return>KErrNone</return> |
|
172 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
173 <CCTCertInfo><label>CAX3</label></CCTCertInfo> |
|
174 <CCTCertInfo><label>CAX2</label></CCTCertInfo> |
|
175 </actionresult> |
|
176 </action> |
|
177 |
|
178 <action> |
|
179 <actionname>5.1.1.5.1,Retrieve CAX1 cert</actionname> |
|
180 <actiontype>retrieve</actiontype> |
|
181 <actionbody> |
|
182 <label>CAX1</label> |
|
183 </actionbody> |
|
184 <actionresult> |
|
185 <return>KErrNone</return> |
|
186 </actionresult> |
|
187 </action> |
|
188 |
|
189 <action> |
|
190 <actionname>5.1.1.9,Deleting the certificate store manager</actionname> |
|
191 <actiontype>delete</actiontype> |
|
192 <actionbody></actionbody> |
|
193 <actionresult> |
|
194 <return>KErrNone</return> |
|
195 </actionresult> |
|
196 </action> |
|
197 |
|
198 <action> |
|
199 <actionname>5.1.1.10,Opening a certificate store manager</actionname> |
|
200 <actiontype>init</actiontype> |
|
201 <actionbody> |
|
202 <mode>write</mode> |
|
203 </actionbody> |
|
204 <actionresult> |
|
205 <return>KErrNone</return> |
|
206 </actionresult> |
|
207 </action> |
|
208 |
|
209 <action> |
|
210 <actionname>5.1.1.11,Get the list of certificates</actionname> |
|
211 <actiontype>listcert</actiontype> |
|
212 <actionbody> |
|
213 <filter> |
|
214 <ownertype>ca</ownertype> |
|
215 </filter> |
|
216 </actionbody> |
|
217 <actionresult> |
|
218 <return>KErrNone</return> |
|
219 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
220 <CCTCertInfo><label>CAX3</label></CCTCertInfo> |
|
221 <CCTCertInfo><label>CAX2</label></CCTCertInfo> |
|
222 </actionresult> |
|
223 </action> |
|
224 |
|
225 //5.1.2 Successfull addition, listing and retrieval of certificates (WTLS) |
|
226 |
|
227 //! @file |
|
228 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCWN5.1.2.1 |
|
229 //! @SYMTestCaseDesc The test is to add a WTLS CA certficate CAW1 in the CertStore and get notification. |
|
230 //! @SYMPREQ 226 |
|
231 //! @SYMTestCasePriority High |
|
232 //! @SYMTestExpectedResults KErrNone |
|
233 <action> |
|
234 <actionname>5.1.2.1,Add the certificate CAW1 with notification</actionname> |
|
235 <actiontype>addcert</actiontype> |
|
236 <actionbody> |
|
237 <format>WTLS</format> |
|
238 <label>CAW1</label> |
|
239 <issuerkey></issuerkey> |
|
240 <subjectkey></subjectkey> |
|
241 <certstore>0</certstore> |
|
242 <certfile>c:\unifiedcertstore2\CAW1.cer</certfile> |
|
243 <certowner>ca</certowner> |
|
244 <ChangeNotification>1</ChangeNotification> |
|
245 </actionbody> |
|
246 <actionresult> |
|
247 <return>KErrNone</return> |
|
248 </actionresult> |
|
249 </action> |
|
250 |
|
251 //! @file |
|
252 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCWN5.1.2.2 |
|
253 //! @SYMTestCaseDesc The test is to add a WTLS CA certficate CAW2 in the CertStore and get notification. |
|
254 //! @SYMPREQ 226 |
|
255 //! @SYMTestCasePriority High |
|
256 //! @SYMTestExpectedResults KErrNone |
|
257 <action> |
|
258 <actionname>5.1.2.2,Add the certificate CAW2 with notification</actionname> |
|
259 <actiontype>addcert</actiontype> |
|
260 <actionbody> |
|
261 <format>WTLS</format> |
|
262 <label>CAW2</label> |
|
263 <issuerkey></issuerkey> |
|
264 <subjectkey></subjectkey> |
|
265 <certstore>1</certstore> |
|
266 <certfile>c:\unifiedcertstore2\CAW2.cer</certfile> |
|
267 <certowner>ca</certowner> |
|
268 <ChangeNotification>1</ChangeNotification> |
|
269 </actionbody> |
|
270 <actionresult> |
|
271 <return>KErrNone</return> |
|
272 </actionresult> |
|
273 </action> |
|
274 |
|
275 //! @file |
|
276 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCWN5.1.2.3 |
|
277 //! @SYMTestCaseDesc The test is to add a WTLS CA certficate CAW3 in the CertStore and get notification. |
|
278 //! @SYMPREQ 226 |
|
279 //! @SYMTestCasePriority High |
|
280 //! @SYMTestExpectedResults KErrNone |
|
281 <action> |
|
282 <actionname>5.1.2.3,Add the certificate CAW3 with notification</actionname> |
|
283 <actiontype>addcert</actiontype> |
|
284 <actionbody> |
|
285 <format>WTLS</format> |
|
286 <label>CAW3</label> |
|
287 <issuerkey></issuerkey> |
|
288 <subjectkey></subjectkey> |
|
289 <certstore>0</certstore> |
|
290 <certfile>c:\unifiedcertstore2\CAW3.cer</certfile> |
|
291 <certowner>ca</certowner> |
|
292 <ChangeNotification>1</ChangeNotification> |
|
293 </actionbody> |
|
294 <actionresult> |
|
295 <return>KErrNone</return> |
|
296 </actionresult> |
|
297 </action> |
|
298 |
|
299 <action> |
|
300 <actionname>5.1.2.4,Get the list of certificates</actionname> |
|
301 <actiontype>listcert</actiontype> |
|
302 <actionbody> |
|
303 <filter> |
|
304 <ownertype>ca</ownertype> |
|
305 </filter> |
|
306 </actionbody> |
|
307 <actionresult> |
|
308 <return>KErrNone</return> |
|
309 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
310 <CCTCertInfo><label>CAX3</label></CCTCertInfo> |
|
311 <CCTCertInfo><label>CAW1</label></CCTCertInfo> |
|
312 <CCTCertInfo><label>CAW3</label></CCTCertInfo> |
|
313 <CCTCertInfo><label>CAX2</label></CCTCertInfo> |
|
314 <CCTCertInfo><label>CAW2</label></CCTCertInfo> |
|
315 </actionresult> |
|
316 </action> |
|
317 |
|
318 <action> |
|
319 <actionname>5.1.2.4.1,Retrieve CAW1 cert</actionname> |
|
320 <actiontype>retrieve</actiontype> |
|
321 <actionbody> |
|
322 <label>CAW1</label> |
|
323 </actionbody> |
|
324 <actionresult> |
|
325 <return>KErrNone</return> |
|
326 </actionresult> |
|
327 </action> |
|
328 |
|
329 <action> |
|
330 <actionname>5.1.2.5,Deleting the certificate store manager</actionname> |
|
331 <actiontype>delete</actiontype> |
|
332 <actionbody></actionbody> |
|
333 <actionresult> |
|
334 <return>KErrNone</return> |
|
335 </actionresult> |
|
336 </action> |
|
337 |
|
338 <action> |
|
339 <actionname>5.1.2.6,Opening a certificate store manager</actionname> |
|
340 <actiontype>init</actiontype> |
|
341 <actionbody> |
|
342 <mode>write</mode> |
|
343 </actionbody> |
|
344 <actionresult> |
|
345 <return>KErrNone</return> |
|
346 </actionresult> |
|
347 </action> |
|
348 |
|
349 <action> |
|
350 <actionname>5.1.2.7,Get the list of certificates</actionname> |
|
351 <actiontype>listcert</actiontype> |
|
352 <actionbody> |
|
353 <filter> |
|
354 <ownertype>ca</ownertype> |
|
355 </filter> |
|
356 </actionbody> |
|
357 <actionresult> |
|
358 <return>KErrNone</return> |
|
359 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
360 <CCTCertInfo><label>CAX3</label></CCTCertInfo> |
|
361 <CCTCertInfo><label>CAW1</label></CCTCertInfo> |
|
362 <CCTCertInfo><label>CAW3</label></CCTCertInfo> |
|
363 <CCTCertInfo><label>CAX2</label></CCTCertInfo> |
|
364 <CCTCertInfo><label>CAW2</label></CCTCertInfo> |
|
365 </actionresult> |
|
366 </action> |
|
367 |
|
368 //5.1.3 Successfull trust settings updates and retrieval |
|
369 |
|
370 //! @file |
|
371 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSAppCWN5.1.3.1 |
|
372 //! @SYMTestCaseDesc The test is to set application to a X509 CA certficate CAX1 in the CertStore and get notification. |
|
373 //! @SYMPREQ 226 |
|
374 //! @SYMTestCasePriority High |
|
375 //! @SYMTestExpectedResults KErrNone |
|
376 <action> |
|
377 <actionname>5.1.3.1,Set applications to the CAX1 certificate with notification</actionname> |
|
378 <actiontype>setapplications</actiontype> |
|
379 <actionbody> |
|
380 <label>CAX1</label> |
|
381 <uid>1 2 3</uid> |
|
382 <ChangeNotification>1</ChangeNotification> |
|
383 </actionbody> |
|
384 <actionresult> |
|
385 <return>KErrNone</return> |
|
386 </actionresult> |
|
387 </action> |
|
388 |
|
389 //! @file |
|
390 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSTrustCWN5.1.3.2 |
|
391 //! @SYMTestCaseDesc The test is to set trust to a X509 CA certficate CAX1 in the CertStore and get notification. |
|
392 //! @SYMPREQ 226 |
|
393 //! @SYMTestCasePriority High |
|
394 //! @SYMTestExpectedResults KErrNone |
|
395 <action> |
|
396 <actionname>5.1.3.2,set the trust for CAX1 with notification</actionname> |
|
397 <actiontype>settrust</actiontype> |
|
398 <actionbody> |
|
399 <label>CAX1</label> |
|
400 <trust>1</trust> |
|
401 <ChangeNotification>1</ChangeNotification> |
|
402 </actionbody> |
|
403 <actionresult> |
|
404 <return>KErrNone</return> |
|
405 </actionresult> |
|
406 </action> |
|
407 |
|
408 //! @file |
|
409 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSAppCWN5.1.3.3 |
|
410 //! @SYMTestCaseDesc The test is to set application to a X509 CA certficate CAX2 in the CertStore and get notification. |
|
411 //! @SYMPREQ 226 |
|
412 //! @SYMTestCasePriority High |
|
413 //! @SYMTestExpectedResults KErrNone |
|
414 <action> |
|
415 <actionname>5.1.3.3,Set applications to the CAX2 certificate with notification</actionname> |
|
416 <actiontype>setapplications</actiontype> |
|
417 <actionbody> |
|
418 <label>CAX2</label> |
|
419 <uid>1</uid> |
|
420 <ChangeNotification>1</ChangeNotification> |
|
421 </actionbody> |
|
422 <actionresult> |
|
423 <return>KErrNone</return> |
|
424 </actionresult> |
|
425 </action> |
|
426 |
|
427 //! @file |
|
428 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSTrustCWN5.1.3.4 |
|
429 //! @SYMTestCaseDesc The test is to set trust to a X509 CA certficate CAX2 in the CertStore and get notification. |
|
430 //! @SYMPREQ 226 |
|
431 //! @SYMTestCasePriority High |
|
432 //! @SYMTestExpectedResults KErrNone |
|
433 <action> |
|
434 <actionname>5.1.3.4,set the trust for CAX2 with notification</actionname> |
|
435 <actiontype>settrust</actiontype> |
|
436 <actionbody> |
|
437 <label>CAX2</label> |
|
438 <trust>1</trust> |
|
439 <ChangeNotification>1</ChangeNotification> |
|
440 </actionbody> |
|
441 <actionresult> |
|
442 <return>KErrNone</return> |
|
443 </actionresult> |
|
444 </action> |
|
445 |
|
446 //! @file |
|
447 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSAppCWN5.1.3.5 |
|
448 //! @SYMTestCaseDesc The test is to set application to a X509 CA certficate CAX3 in the CertStore and get notification. |
|
449 //! @SYMPREQ 226 |
|
450 //! @SYMTestCasePriority High |
|
451 //! @SYMTestExpectedResults KErrNone |
|
452 <action> |
|
453 <actionname>5.1.3.5,Set applications to the CAX3 certificate with notification</actionname> |
|
454 <actiontype>setapplications</actiontype> |
|
455 <actionbody> |
|
456 <label>CAX3</label> |
|
457 <uid></uid> |
|
458 <ChangeNotification>1</ChangeNotification> |
|
459 </actionbody> |
|
460 <actionresult> |
|
461 <return>KErrNone</return> |
|
462 </actionresult> |
|
463 </action> |
|
464 |
|
465 //! @file |
|
466 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSTrustCWN5.1.3.6 |
|
467 //! @SYMTestCaseDesc The test is to set trust to a X509 CA certficate CAX3 in the CertStore and get notification. |
|
468 //! @SYMPREQ 226 |
|
469 //! @SYMTestCasePriority High |
|
470 //! @SYMTestExpectedResults KErrNone |
|
471 <action> |
|
472 <actionname>5.1.3.6,set the trust for CAX3 with notification</actionname> |
|
473 <actiontype>settrust</actiontype> |
|
474 <actionbody> |
|
475 <label>CAX3</label> |
|
476 <trust>1</trust> |
|
477 <ChangeNotification>1</ChangeNotification> |
|
478 </actionbody> |
|
479 <actionresult> |
|
480 <return>KErrNone</return> |
|
481 </actionresult> |
|
482 </action> |
|
483 |
|
484 <action> |
|
485 <actionname>5.1.3.7,Get applications for CAX1</actionname> |
|
486 <actiontype>getapplications</actiontype> |
|
487 <actionbody> |
|
488 <label>CAX1</label> |
|
489 </actionbody> |
|
490 <actionresult> |
|
491 <return>KErrNone</return> |
|
492 <uid>1 2 3</uid> |
|
493 </actionresult> |
|
494 </action> |
|
495 |
|
496 <action> |
|
497 <actionname>5.1.3.8,Get the trust for CAX1</actionname> |
|
498 <actiontype>gettrusters</actiontype> |
|
499 <actionbody> |
|
500 <label>CAX1</label> |
|
501 </actionbody> |
|
502 <actionresult> |
|
503 <return>KErrNone</return> |
|
504 <trust>1</trust> |
|
505 </actionresult> |
|
506 </action> |
|
507 |
|
508 <action> |
|
509 <actionname>5.1.3.9,Get applications for CAX2</actionname> |
|
510 <actiontype>getapplications</actiontype> |
|
511 <actionbody> |
|
512 <label>CAX2</label> |
|
513 </actionbody> |
|
514 <actionresult> |
|
515 <return>KErrNone</return> |
|
516 <uid>1</uid> |
|
517 </actionresult> |
|
518 </action> |
|
519 |
|
520 <action> |
|
521 <actionname>5.1.3.10,Get the trust for CAX2</actionname> |
|
522 <actiontype>gettrusters</actiontype> |
|
523 <actionbody> |
|
524 <label>CAX2</label> |
|
525 </actionbody> |
|
526 <actionresult> |
|
527 <return>KErrNone</return> |
|
528 <trust>1</trust> |
|
529 </actionresult> |
|
530 </action> |
|
531 |
|
532 <action> |
|
533 <actionname>5.1.3.11,Get applications for CAX3</actionname> |
|
534 <actiontype>getapplications</actiontype> |
|
535 <actionbody> |
|
536 <label>CAX3</label> |
|
537 </actionbody> |
|
538 <actionresult> |
|
539 <return>KErrNone</return> |
|
540 <uid></uid> |
|
541 </actionresult> |
|
542 </action> |
|
543 |
|
544 <action> |
|
545 <actionname>5.1.3.12,Get the trust for CAX3</actionname> |
|
546 <actiontype>gettrusters</actiontype> |
|
547 <actionbody> |
|
548 <label>CAX3</label> |
|
549 </actionbody> |
|
550 <actionresult> |
|
551 <return>KErrNone</return> |
|
552 <trust>1</trust> |
|
553 </actionresult> |
|
554 </action> |
|
555 //! @file |
|
556 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSAppCWN5.1.3.13 |
|
557 //! @SYMTestCaseDesc The test is to set application to a WTLS CA certficate CAW2 in the CertStore and get notification. |
|
558 //! @SYMPREQ 226 |
|
559 //! @SYMTestCasePriority High |
|
560 //! @SYMTestExpectedResults KErrNone |
|
561 <action> |
|
562 <actionname>5.1.3.13,Set trusters to the CAW2 certificate with notification</actionname> |
|
563 <actiontype>setapplications</actiontype> |
|
564 <actionbody> |
|
565 <label>CAW2</label> |
|
566 <uid>1 2 3</uid> |
|
567 <ChangeNotification>1</ChangeNotification> |
|
568 </actionbody> |
|
569 <actionresult> |
|
570 <return>KErrNone</return> |
|
571 </actionresult> |
|
572 </action> |
|
573 //! @file |
|
574 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSTrustCWN5.1.3.14 |
|
575 //! @SYMTestCaseDesc The test is to set trust to a WTLS CA certficate CAW2 in the CertStore and get notification. |
|
576 //! @SYMPREQ 226 |
|
577 //! @SYMTestCasePriority High |
|
578 //! @SYMTestExpectedResults KErrNone |
|
579 <action> |
|
580 <actionname>5.1.3.14,set the trust for CAW2 with notification</actionname> |
|
581 <actiontype>settrust</actiontype> |
|
582 <actionbody> |
|
583 <label>CAW2</label> |
|
584 <trust>1</trust> |
|
585 <ChangeNotification>1</ChangeNotification> |
|
586 </actionbody> |
|
587 <actionresult> |
|
588 <return>KErrNone</return> |
|
589 </actionresult> |
|
590 </action> |
|
591 |
|
592 //! @file |
|
593 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSAppCWN5.1.3.15 |
|
594 //! @SYMTestCaseDesc The test is to set application to a WTLS CA certficate CAW3 in the CertStore and get notification. |
|
595 //! @SYMPREQ 226 |
|
596 //! @SYMTestCasePriority High |
|
597 //! @SYMTestExpectedResults KErrNone |
|
598 <action> |
|
599 <actionname>5.1.3.15,Set trusters to the CAW3 certificate with notification</actionname> |
|
600 <actiontype>setapplications</actiontype> |
|
601 <actionbody> |
|
602 <label>CAW3</label> |
|
603 <uid>1 2</uid> |
|
604 <ChangeNotification>1</ChangeNotification> |
|
605 </actionbody> |
|
606 <actionresult> |
|
607 <return>KErrNone</return> |
|
608 </actionresult> |
|
609 </action> |
|
610 |
|
611 //! @file |
|
612 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSTrustCWN5.1.3.16 |
|
613 //! @SYMTestCaseDesc The test is to set trust to a WTLS CA certficate CAW3 in the CertStore and get notification. |
|
614 //! @SYMPREQ 226 |
|
615 //! @SYMTestCasePriority High |
|
616 //! @SYMTestExpectedResults KErrNone |
|
617 <action> |
|
618 <actionname>5.1.3.16,set the trust for CAW3 with notification</actionname> |
|
619 <actiontype>settrust</actiontype> |
|
620 <actionbody> |
|
621 <label>CAW3</label> |
|
622 <trust>1</trust> |
|
623 <ChangeNotification>1</ChangeNotification> |
|
624 </actionbody> |
|
625 <actionresult> |
|
626 <return>KErrNone</return> |
|
627 </actionresult> |
|
628 </action> |
|
629 |
|
630 <action> |
|
631 <actionname>5.1.3.17,Get applications for CAW1</actionname> |
|
632 <actiontype>getapplications</actiontype> |
|
633 <actionbody> |
|
634 <label>CAW1</label> |
|
635 </actionbody> |
|
636 <actionresult> |
|
637 <return>KErrNone</return> |
|
638 <uid></uid> |
|
639 </actionresult> |
|
640 </action> |
|
641 |
|
642 <action> |
|
643 <actionname>5.1.3.18,Get the trust for CAW1</actionname> |
|
644 <actiontype>gettrusters</actiontype> |
|
645 <actionbody> |
|
646 <label>CAW1</label> |
|
647 </actionbody> |
|
648 <actionresult> |
|
649 <return>KErrNone</return> |
|
650 <trust>0</trust> |
|
651 </actionresult> |
|
652 </action> |
|
653 |
|
654 <action> |
|
655 <actionname>5.1.3.19,Get applications for CAW2</actionname> |
|
656 <actiontype>getapplications</actiontype> |
|
657 <actionbody> |
|
658 <label>CAW2</label> |
|
659 </actionbody> |
|
660 <actionresult> |
|
661 <return>KErrNone</return> |
|
662 <uid>1 2 3</uid> |
|
663 </actionresult> |
|
664 </action> |
|
665 |
|
666 <action> |
|
667 <actionname>5.1.3.20,Get the trust for CAW2</actionname> |
|
668 <actiontype>gettrusters</actiontype> |
|
669 <actionbody> |
|
670 <label>CAW2</label> |
|
671 </actionbody> |
|
672 <actionresult> |
|
673 <return>KErrNone</return> |
|
674 <trust>1</trust> |
|
675 </actionresult> |
|
676 </action> |
|
677 |
|
678 <action> |
|
679 <actionname>5.1.3.21,Get applications for CAW3</actionname> |
|
680 <actiontype>getapplications</actiontype> |
|
681 <actionbody> |
|
682 <label>CAW3</label> |
|
683 </actionbody> |
|
684 <actionresult> |
|
685 <return>KErrNone</return> |
|
686 <uid>1 2</uid> |
|
687 </actionresult> |
|
688 </action> |
|
689 |
|
690 <action> |
|
691 <actionname>5.1.3.22,Get the trust for CAW3</actionname> |
|
692 <actiontype>gettrusters</actiontype> |
|
693 <actionbody> |
|
694 <label>CAW3</label> |
|
695 </actionbody> |
|
696 <actionresult> |
|
697 <return>KErrNone</return> |
|
698 <trust>1</trust> |
|
699 </actionresult> |
|
700 </action> |
|
701 |
|
702 //5.1.4 Successfull addition and retrieval of user certificates |
|
703 |
|
704 <action> |
|
705 <actionname>1.1.0.4 Import a RSA key</actionname> |
|
706 <actiontype>importkey</actiontype> |
|
707 <actionbody> |
|
708 <ImportData>rsacertkey1.txt</ImportData> |
|
709 <keyusage>AllUsagesButNR</keyusage> |
|
710 <keylabel>*IMPORTED* RSA key 1</keylabel> |
|
711 <keyaccesstype>Extractable</keyaccesstype> |
|
712 </actionbody> |
|
713 <actionresult> |
|
714 <return>KErrNone</return> |
|
715 </actionresult> |
|
716 </action> |
|
717 |
|
718 <action> |
|
719 <actionname>1.1.0.5 Import a RSA key</actionname> |
|
720 <actiontype>importkey</actiontype> |
|
721 <actionbody> |
|
722 <ImportData>rsacertkey2.txt</ImportData> |
|
723 <keyusage>AllUsagesButNR</keyusage> |
|
724 <keylabel>*IMPORTED* RSA key 2</keylabel> |
|
725 <keyaccesstype>Extractable</keyaccesstype> |
|
726 </actionbody> |
|
727 <actionresult> |
|
728 <return>KErrNone</return> |
|
729 </actionresult> |
|
730 </action> |
|
731 |
|
732 <action> |
|
733 <actionname>1.1.0.6 Import a RSA key</actionname> |
|
734 <actiontype>importkey</actiontype> |
|
735 <actionbody> |
|
736 <ImportData>rsacertkey3.txt</ImportData> |
|
737 <keyusage>AllUsagesButNR</keyusage> |
|
738 <keylabel>*IMPORTED* RSA key 3</keylabel> |
|
739 <keyaccesstype>Extractable</keyaccesstype> |
|
740 </actionbody> |
|
741 <actionresult> |
|
742 <return>KErrNone</return> |
|
743 </actionresult> |
|
744 </action> |
|
745 |
|
746 <action> |
|
747 <actionname>5.1.4.1, Add certificate rsacert1 ***NEW***</actionname> |
|
748 <actiontype>addcert</actiontype> |
|
749 <actionbody> |
|
750 <format>X509</format> |
|
751 <label>rsacert1</label> |
|
752 <issuerkey></issuerkey> |
|
753 <subjectkey>4808f03892fe836e78d048bcefcca4a37913d886</subjectkey> |
|
754 <certstore>0</certstore> |
|
755 <certfile>c:\unifiedcertstore2\rsacert1.cer</certfile> |
|
756 <certowner>user</certowner> |
|
757 </actionbody> |
|
758 <actionresult> |
|
759 <return>KErrNone</return> |
|
760 </actionresult> |
|
761 </action> |
|
762 |
|
763 |
|
764 <action> |
|
765 <actionname>5.1.4.2,Add the certificate rsacert2 ***NEW***</actionname> |
|
766 <actiontype>addcert</actiontype> |
|
767 <actionbody> |
|
768 <format>X509</format> |
|
769 <label>rsacert2</label> |
|
770 <issuerkey></issuerkey> |
|
771 <subjectkey>dc448293c7c3ed68c9fabd37db43007136ae2ef4</subjectkey> |
|
772 <certstore>0</certstore> |
|
773 <certfile>c:\unifiedcertstore2\rsacert2.cer</certfile> |
|
774 <certowner>user</certowner> |
|
775 </actionbody> |
|
776 <actionresult> |
|
777 <return>KErrNone</return> |
|
778 </actionresult> |
|
779 </action> |
|
780 |
|
781 <action> |
|
782 <actionname>5.1.4.3,Add the certificate rsacert3 ***NEW***</actionname> |
|
783 <actiontype>addcert</actiontype> |
|
784 <actionbody> |
|
785 <format>X509</format> |
|
786 <label>rsacert3</label> |
|
787 <issuerkey></issuerkey> |
|
788 <subjectkey>0b2e1d1d4dbae5fc59a02a5115d2c2910fa796e0</subjectkey> |
|
789 <certstore>0</certstore> |
|
790 <certfile>c:\unifiedcertstore2\rsacert3.cer</certfile> |
|
791 <certowner>user</certowner> |
|
792 </actionbody> |
|
793 <actionresult> |
|
794 <return>KErrNone</return> |
|
795 </actionresult> |
|
796 </action> |
|
797 |
|
798 <action> |
|
799 <actionname>5.1.4.4.a,Get the list of certificates</actionname> |
|
800 <actiontype>listcert</actiontype> |
|
801 <actionbody> |
|
802 <filter> |
|
803 <ownertype>ca</ownertype> |
|
804 </filter> |
|
805 </actionbody> |
|
806 <actionresult> |
|
807 <return>KErrNone</return> |
|
808 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
809 <CCTCertInfo><label>CAX3</label></CCTCertInfo> |
|
810 <CCTCertInfo><label>CAW1</label></CCTCertInfo> |
|
811 <CCTCertInfo><label>CAW3</label></CCTCertInfo> |
|
812 <CCTCertInfo><label>CAX2</label></CCTCertInfo> |
|
813 <CCTCertInfo><label>CAW2</label></CCTCertInfo> |
|
814 </actionresult> |
|
815 </action> |
|
816 |
|
817 <action> |
|
818 <actionname>5.1.4.4.b,Get the list of certificates</actionname> |
|
819 <actiontype>listcert</actiontype> |
|
820 <actionbody> |
|
821 <filter> |
|
822 <ownertype>user</ownertype> |
|
823 </filter> |
|
824 </actionbody> |
|
825 <actionresult> |
|
826 <return>KErrNone</return> |
|
827 <CCTCertInfo><label>rsacert1</label></CCTCertInfo> |
|
828 <CCTCertInfo><label>rsacert2</label></CCTCertInfo> |
|
829 <CCTCertInfo><label>rsacert3</label></CCTCertInfo> |
|
830 </actionresult> |
|
831 </action> |
|
832 |
|
833 <action> |
|
834 <actionname>5.1.4.4.c,Retrieve rsacert1 cert</actionname> |
|
835 <actiontype>retrieve</actiontype> |
|
836 <actionbody> |
|
837 <label>rsacert1</label> |
|
838 </actionbody> |
|
839 <actionresult> |
|
840 <return>KErrNone</return> |
|
841 </actionresult> |
|
842 </action> |
|
843 |
|
844 //! @file |
|
845 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTdelCWN1.1 |
|
846 //! @SYMTestCaseDesc The test is to delete a X509 CA certficate CAX1 in the CertStore and get notification. |
|
847 //! @SYMPREQ 226 |
|
848 //! @SYMTestCasePriority High |
|
849 //! @SYMTestExpectedResults KErrNone |
|
850 <action> |
|
851 <actionname>No Test,Deleting the certificate CAX1 with notification</actionname> |
|
852 <actiontype>deletecert</actiontype> |
|
853 <actionbody> |
|
854 <certtype>ca</certtype> |
|
855 <label>CAX1</label> |
|
856 <ChangeNotification>1</ChangeNotification> |
|
857 </actionbody> |
|
858 <actionresult> |
|
859 <return>KErrNone</return> |
|
860 </actionresult> |
|
861 </action> |
|
862 |
|
863 //! @file |
|
864 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTdelCWN1.2 |
|
865 //! @SYMTestCaseDesc The test is to delete a X509 CA certficate CAX2 in the CertStore and get notification. |
|
866 //! @SYMPREQ 226 |
|
867 //! @SYMTestCasePriority High |
|
868 //! @SYMTestExpectedResults KErrNone |
|
869 <action> |
|
870 <actionname>No Test,Deleting the certificate CAX2 with notification</actionname> |
|
871 <actiontype>deletecert</actiontype> |
|
872 <actionbody> |
|
873 <certtype>ca</certtype> |
|
874 <label>CAX2</label> |
|
875 <ChangeNotification>1</ChangeNotification> |
|
876 </actionbody> |
|
877 <actionresult> |
|
878 <return>KErrNone</return> |
|
879 </actionresult> |
|
880 </action> |
|
881 |
|
882 //! @file |
|
883 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTdelCWN1.3 |
|
884 //! @SYMTestCaseDesc The test is to delete a X509 CA certficate CAX3 in the CertStore and get notification. |
|
885 //! @SYMPREQ 226 |
|
886 //! @SYMTestCasePriority High |
|
887 //! @SYMTestExpectedResults KErrNone |
|
888 <action> |
|
889 <actionname>No Test,Deleting the certificate CAX3 with notification</actionname> |
|
890 <actiontype>deletecert</actiontype> |
|
891 <actionbody> |
|
892 <certtype>ca</certtype> |
|
893 <label>CAX3</label> |
|
894 <ChangeNotification>1</ChangeNotification> |
|
895 </actionbody> |
|
896 <actionresult> |
|
897 <return>KErrNone</return> |
|
898 </actionresult> |
|
899 </action> |
|
900 |
|
901 //! @file |
|
902 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTdelCWN1.4 |
|
903 //! @SYMTestCaseDesc The test is to delete a WTLS CA certficate CAW1 in the CertStore and get notification. |
|
904 //! @SYMPREQ 226 |
|
905 //! @SYMTestCasePriority High |
|
906 //! @SYMTestExpectedResults KErrNone |
|
907 <action> |
|
908 <actionname>No Test,Deleting the certificate CAW1 with notification</actionname> |
|
909 <actiontype>deletecert</actiontype> |
|
910 <actionbody> |
|
911 <certtype>ca</certtype> |
|
912 <label>CAW1</label> |
|
913 <ChangeNotification>1</ChangeNotification> |
|
914 </actionbody> |
|
915 <actionresult> |
|
916 <return>KErrNone</return> |
|
917 </actionresult> |
|
918 </action> |
|
919 |
|
920 //! @file |
|
921 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTdelCWN1.5 |
|
922 //! @SYMTestCaseDesc The test is to delete a WTLS CA certficate CAW2 in the CertStore and get notification. |
|
923 //! @SYMPREQ 226 |
|
924 //! @SYMTestCasePriority High |
|
925 //! @SYMTestExpectedResults KErrNone |
|
926 <action> |
|
927 <actionname>No Test,Deleting the certificate CAW2 with notification</actionname> |
|
928 <actiontype>deletecert</actiontype> |
|
929 <actionbody> |
|
930 <certtype>ca</certtype> |
|
931 <label>CAW2</label> |
|
932 <ChangeNotification>1</ChangeNotification> |
|
933 </actionbody> |
|
934 <actionresult> |
|
935 <return>KErrNone</return> |
|
936 </actionresult> |
|
937 </action> |
|
938 |
|
939 //! @file |
|
940 //! @SYMTestCaseID UCTSSEC-CT-WModeUCTdelCWN1.6 |
|
941 //! @SYMTestCaseDesc The test is to delete a WTLS CA certficate CAW3 in the CertStore and get notification. |
|
942 //! @SYMPREQ 226 |
|
943 //! @SYMTestCasePriority High |
|
944 //! @SYMTestExpectedResults KErrNone |
|
945 <action> |
|
946 <actionname>No Test,Deleting the certificate CAW3 with notification</actionname> |
|
947 <actiontype>deletecert</actiontype> |
|
948 <actionbody> |
|
949 <certtype>ca</certtype> |
|
950 <label>CAW3</label> |
|
951 <ChangeNotification>1</ChangeNotification> |
|
952 </actionbody> |
|
953 <actionresult> |
|
954 <return>KErrNone</return> |
|
955 </actionresult> |
|
956 </action> |
|
957 |
|
958 <action> |
|
959 <actionname>No Test,Deleting the certificate rsacert1 ***NEW***</actionname> |
|
960 <actiontype>deletecert</actiontype> |
|
961 <actionbody> |
|
962 <certtype>user</certtype> |
|
963 <label>rsacert1</label> |
|
964 </actionbody> |
|
965 <actionresult> |
|
966 <return>KErrNone</return> |
|
967 </actionresult> |
|
968 </action> |
|
969 |
|
970 <action> |
|
971 <actionname>No Test,Deleting the certificate rsacert2 ***NEW***</actionname> |
|
972 <actiontype>deletecert</actiontype> |
|
973 <actionbody> |
|
974 <certtype>user</certtype> |
|
975 <label>rsacert2</label> |
|
976 </actionbody> |
|
977 <actionresult> |
|
978 <return>KErrNone</return> |
|
979 </actionresult> |
|
980 </action> |
|
981 |
|
982 <action> |
|
983 <actionname>No Test,Deleting the certificate rsacert3 ***NEW***</actionname> |
|
984 <actiontype>deletecert</actiontype> |
|
985 <actionbody> |
|
986 <certtype>user</certtype> |
|
987 <label>rsacert3</label> |
|
988 </actionbody> |
|
989 <actionresult> |
|
990 <return>KErrNone</return> |
|
991 </actionresult> |
|
992 </action> |
|
993 |
|
994 <action> |
|
995 <actionname>No Test,Deleting the writable certificate store manager</actionname> |
|
996 <actiontype>delete</actiontype> |
|
997 <actionbody></actionbody> |
|
998 <actionresult> |
|
999 <return>KErrNone</return> |
|
1000 </actionresult> |
|
1001 </action> |
|
1002 |
|
1003 <action> |
|
1004 <actionname>No Test,Opening a CertificateAppInfoManager</actionname> |
|
1005 <actiontype>initappmanager</actiontype> |
|
1006 <actionbody></actionbody> |
|
1007 <actionresult> |
|
1008 <return>KErrNone</return> |
|
1009 </actionresult> |
|
1010 </action> |
|
1011 |
|
1012 <action> |
|
1013 <actionname>No Test,Deleting the client A1</actionname> |
|
1014 <actiontype>removeclient</actiontype> |
|
1015 <actionbody> |
|
1016 <uid>1</uid> |
|
1017 </actionbody> |
|
1018 <actionresult> |
|
1019 <return>KErrNone</return> |
|
1020 </actionresult> |
|
1021 </action> |
|
1022 |
|
1023 <action> |
|
1024 <actionname>No Test,Deleting the client A2</actionname> |
|
1025 <actiontype>removeclient</actiontype> |
|
1026 <actionbody> |
|
1027 <uid>2</uid> |
|
1028 </actionbody> |
|
1029 <actionresult> |
|
1030 <return>KErrNone</return> |
|
1031 </actionresult> |
|
1032 </action> |
|
1033 |
|
1034 <action> |
|
1035 <actionname>No Test,Deleting the client A3</actionname> |
|
1036 <actiontype>removeclient</actiontype> |
|
1037 <actionbody> |
|
1038 <uid>3</uid> |
|
1039 </actionbody> |
|
1040 <actionresult> |
|
1041 <return>KErrNone</return> |
|
1042 </actionresult> |
|
1043 </action> |
|
1044 |
|
1045 <action> |
|
1046 <actionname>No Test,Deleting the client A4</actionname> |
|
1047 <actiontype>removeclient</actiontype> |
|
1048 <actionbody> |
|
1049 <uid>4</uid> |
|
1050 </actionbody> |
|
1051 <actionresult> |
|
1052 <return>KErrNone</return> |
|
1053 </actionresult> |
|
1054 </action> |
|
1055 |
|
1056 <action> |
|
1057 <actionname>No Test,Deleting the CertificateAppInfoManager</actionname> |
|
1058 <actiontype>deleteappmanager</actiontype> |
|
1059 <actionbody></actionbody> |
|
1060 <actionresult> |
|
1061 <return>KErrNone</return> |
|
1062 </actionresult> |
|
1063 </action> |
|
1064 |
|
1065 //! @file |
|
1066 //! @SYMTestCaseID UCTSSEC-CT-RModeUCTWithSS5.6 |
|
1067 //! @SYMTestCaseDesc The test is to open one UnifiedCertStore in read mode with the |
|
1068 //! sequence of UICC, WIM, unknown hardware, SIM, ManufactureSoftware and ThirdpartySoftware cerstore |
|
1069 //! implementations, and expect the correct order.The test needs |
|
1070 //! tadditionalstores.dll enabled |
|
1071 //! @SYMPREQ 226 |
|
1072 //! @SYMTestCasePriority High |
|
1073 //! @SYMTestExpectedResults KErrNone |
|
1074 <action> |
|
1075 <actionname>5.6,Opening a read-only certificate store manager</actionname> |
|
1076 <actiontype>init</actiontype> |
|
1077 <actionbody> |
|
1078 <mode>read</mode> |
|
1079 <orderingfilter>4,3,0,2,5,1</orderingfilter> |
|
1080 </actionbody> |
|
1081 <actionresult> |
|
1082 <orderingresult>270488185</orderingresult> |
|
1083 <return>KErrNone</return> |
|
1084 </actionresult> |
|
1085 </action> |
|
1086 |
|
1087 <action> |
|
1088 <actionname>0.2,Deleting the second read-only certificate store manager</actionname> |
|
1089 <actiontype>delete</actiontype> |
|
1090 <actionbody></actionbody> |
|
1091 <actionresult> |
|
1092 <return>KErrNone</return> |
|
1093 </actionresult> |
|
1094 </action> |