|
1 // |
|
2 // Cancellation tests for unified cert store |
|
3 // |
|
4 |
|
5 // Setup /////////////////////////////////////////////////////////////////////// |
|
6 |
|
7 <action> |
|
8 <actionname>No Test,Opening a CertificateAppInfoManager</actionname> |
|
9 <actiontype>initappmanager</actiontype> |
|
10 <actionbody></actionbody> |
|
11 <actionresult> |
|
12 <return>KErrNone</return> |
|
13 </actionresult> |
|
14 </action> |
|
15 |
|
16 <action> |
|
17 <actionname>No Test,Adding client A1</actionname> |
|
18 <actiontype>addclient</actiontype> |
|
19 <actionbody> |
|
20 <name>A1</name> |
|
21 <uid>1</uid> |
|
22 </actionbody> |
|
23 <actionresult> |
|
24 <return>KErrNone</return> |
|
25 </actionresult> |
|
26 </action> |
|
27 |
|
28 <action> |
|
29 <actionname>No Test,Adding client A2</actionname> |
|
30 <actiontype>addclient</actiontype> |
|
31 <actionbody> |
|
32 <name>A2</name> |
|
33 <uid>2</uid> |
|
34 </actionbody> |
|
35 <actionresult> |
|
36 <return>KErrNone</return> |
|
37 </actionresult> |
|
38 </action> |
|
39 |
|
40 <action> |
|
41 <actionname>No Test,Adding client A3</actionname> |
|
42 <actiontype>addclient</actiontype> |
|
43 <actionbody> |
|
44 <name>A3</name> |
|
45 <uid>3</uid> |
|
46 </actionbody> |
|
47 <actionresult> |
|
48 <return>KErrNone</return> |
|
49 </actionresult> |
|
50 </action> |
|
51 |
|
52 <action> |
|
53 <actionname>No Test,Adding client A4</actionname> |
|
54 <actiontype>addclient</actiontype> |
|
55 <actionbody> |
|
56 <name>A4</name> |
|
57 <uid>4</uid> |
|
58 </actionbody> |
|
59 <actionresult> |
|
60 <return>KErrNone</return> |
|
61 </actionresult> |
|
62 </action> |
|
63 |
|
64 <action> |
|
65 <actionname>No Test,Deleting the CertificateAppInfoManager</actionname> |
|
66 <actiontype>deleteappmanager</actiontype> |
|
67 <actionbody></actionbody> |
|
68 <actionresult> |
|
69 <return>KErrNone</return> |
|
70 </actionresult> |
|
71 </action> |
|
72 |
|
73 <action> |
|
74 <actionname>Import a RSA key rsacertkey1</actionname> |
|
75 <actiontype>importkey</actiontype> |
|
76 <actionbody> |
|
77 <ImportData>rsacertkey1.txt</ImportData> |
|
78 <keyusage>AllUsagesButNR</keyusage> |
|
79 <keylabel>*IMPORTED* RSA key 1</keylabel> |
|
80 <keyaccesstype>Extractable</keyaccesstype> |
|
81 </actionbody> |
|
82 <actionresult> |
|
83 <return>KErrNone</return> |
|
84 </actionresult> |
|
85 </action> |
|
86 |
|
87 <action> |
|
88 <actionname>Opening a writable certificate store manager</actionname> |
|
89 <actiontype>init</actiontype> |
|
90 <actionbody> |
|
91 <mode>write</mode> |
|
92 </actionbody> |
|
93 <actionresult> |
|
94 <return>KErrNone</return> |
|
95 </actionresult> |
|
96 </action> |
|
97 |
|
98 <action> |
|
99 <actionname>Deleting all certs</actionname> |
|
100 <actiontype>deletecert</actiontype> |
|
101 <actionbody> |
|
102 <label>*.*</label> |
|
103 <deleteallcerts>1</deleteallcerts> |
|
104 </actionbody> |
|
105 <actionresult> |
|
106 <return>KErrNone</return> |
|
107 </actionresult> |
|
108 </action> |
|
109 |
|
110 <action> |
|
111 <actionname>Deleting the writable certificate store manager</actionname> |
|
112 <actiontype>delete</actiontype> |
|
113 <actionbody></actionbody> |
|
114 <actionresult> |
|
115 <return>KErrNone</return> |
|
116 </actionresult> |
|
117 </action> |
|
118 |
|
119 <action> |
|
120 <actionname>Enabling cancellation testing</actionname> |
|
121 <actiontype>startcancellation</actiontype> |
|
122 <actionresult> |
|
123 <return>KErrNone</return> |
|
124 </actionresult> |
|
125 </action> |
|
126 |
|
127 // Initialisation ////////////////////////////////////////////////////////////// |
|
128 |
|
129 <action> |
|
130 <actionname>Opening a writable certificate store manager</actionname> |
|
131 <actiontype>init</actiontype> |
|
132 <actionbody> |
|
133 <mode>write</mode> |
|
134 </actionbody> |
|
135 <actionresult> |
|
136 <return>KErrNone</return> |
|
137 </actionresult> |
|
138 </action> |
|
139 |
|
140 // Add certs /////////////////////////////////////////////////////////////////// |
|
141 |
|
142 <action> |
|
143 <actionname>Add X509 CA certificate CAX1</actionname> |
|
144 <actiontype>addcert</actiontype> |
|
145 <actionbody> |
|
146 <format>X509</format> |
|
147 <label>CAX1</label> |
|
148 <issuerkey></issuerkey> |
|
149 <subjectkey></subjectkey> |
|
150 <certstore>0</certstore> |
|
151 <certfile>c:\unifiedcertstore2\CAX1.cer</certfile> |
|
152 <certowner>ca</certowner> |
|
153 </actionbody> |
|
154 <actionresult> |
|
155 <return>KErrNone</return> |
|
156 </actionresult> |
|
157 </action> |
|
158 |
|
159 <action> |
|
160 <actionname>Add WTLS CA certificate CAW1</actionname> |
|
161 <actiontype>addcert</actiontype> |
|
162 <actionbody> |
|
163 <format>WTLS</format> |
|
164 <label>CAW1</label> |
|
165 <issuerkey></issuerkey> |
|
166 <subjectkey></subjectkey> |
|
167 <certstore>0</certstore> |
|
168 <certfile>c:\unifiedcertstore2\CAW1.cer</certfile> |
|
169 <certowner>ca</certowner> |
|
170 </actionbody> |
|
171 <actionresult> |
|
172 <return>KErrNone</return> |
|
173 </actionresult> |
|
174 </action> |
|
175 |
|
176 <action> |
|
177 <actionname>Add X509 user certificate rsacert1</actionname> |
|
178 <actiontype>addcert</actiontype> |
|
179 <actionbody> |
|
180 <format>X509</format> |
|
181 <label>rsacert1</label> |
|
182 <issuerkey></issuerkey> |
|
183 <subjectkey>4808f03892fe836e78d048bcefcca4a37913d886</subjectkey> |
|
184 <certstore>0</certstore> |
|
185 <certfile>c:\unifiedcertstore2\rsacert1.cer</certfile> |
|
186 <certowner>user</certowner> |
|
187 </actionbody> |
|
188 <actionresult> |
|
189 <return>KErrNone</return> |
|
190 </actionresult> |
|
191 </action> |
|
192 |
|
193 // List certs ////////////////////////////////////////////////////////////////// |
|
194 |
|
195 <action> |
|
196 <actionname>List CA certificates</actionname> |
|
197 <actiontype>listcert</actiontype> |
|
198 <actionbody> |
|
199 <filter> |
|
200 <ownertype>ca</ownertype> |
|
201 </filter> |
|
202 </actionbody> |
|
203 <actionresult> |
|
204 <return>KErrNone</return> |
|
205 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
206 <CCTCertInfo><label>CAW1</label></CCTCertInfo> |
|
207 </actionresult> |
|
208 </action> |
|
209 |
|
210 <action> |
|
211 <actionname>List user certificates</actionname> |
|
212 <actiontype>listcert</actiontype> |
|
213 <actionbody> |
|
214 <filter> |
|
215 <ownertype>user</ownertype> |
|
216 <keyusagedescription> |
|
217 <keyusagescheme>pkcs15</keyusagescheme> |
|
218 <keytype>private</keytype> |
|
219 <keyusage>AllUsagesButNR</keyusage> |
|
220 </keyusagedescription> |
|
221 </filter> |
|
222 </actionbody> |
|
223 <actionresult> |
|
224 <return>KErrNone</return> |
|
225 <CCTCertInfo><label>rsacert1</label></CCTCertInfo> |
|
226 </actionresult> |
|
227 </action> |
|
228 |
|
229 <action> |
|
230 <actionname>List user certificates filtered by key usage</actionname> |
|
231 <actiontype>listcert</actiontype> |
|
232 <actionbody> |
|
233 <filter> |
|
234 <ownertype>user</ownertype> |
|
235 <keyusagedescription> |
|
236 <keyusagescheme>pkcs15</keyusagescheme> |
|
237 <keytype>private</keytype> |
|
238 <keyusage>Decrypt</keyusage> |
|
239 <keyusagedescription> |
|
240 </filter> |
|
241 </actionbody> |
|
242 <actionresult> |
|
243 <return>KErrNone</return> |
|
244 <CCTCertInfo><label>rsacert1</label></CCTCertInfo> |
|
245 </actionresult> |
|
246 </action> |
|
247 |
|
248 <action> |
|
249 <actionname>List user certificates filtered by key usage</actionname> |
|
250 <actiontype>listcert</actiontype> |
|
251 <actionbody> |
|
252 <filter> |
|
253 <ownertype>user</ownertype> |
|
254 <keyusagedescription> |
|
255 <keyusagescheme>pkcs15</keyusagescheme> |
|
256 <keyusage>NonRepudiation</keyusage> |
|
257 </keyusagedescription> |
|
258 </filter> |
|
259 </actionbody> |
|
260 <actionresult> |
|
261 <return>KErrNone</return> |
|
262 </actionresult> |
|
263 </action> |
|
264 |
|
265 <action> |
|
266 <actionname>List certificates filtered by Issuer DN</actionname> |
|
267 <actiontype>listcert</actiontype> |
|
268 <actionbody> |
|
269 <filter> |
|
270 <ownertype>ca</ownertype> |
|
271 </filter> |
|
272 <issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn> |
|
273 </actionbody> |
|
274 <actionresult> |
|
275 <return>KErrNone</return> |
|
276 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
277 </actionresult> |
|
278 </action> |
|
279 |
|
280 <action> |
|
281 <actionname>List certificates filtered by Issuer DN</actionname> |
|
282 <actiontype>listcert</actiontype> |
|
283 <actionbody> |
|
284 <filter> |
|
285 <ownertype>ca</ownertype> |
|
286 </filter> |
|
287 <issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn> |
|
288 <issuerdn>c:\unifiedcertstore2\CAX2.cer</issuerdn> |
|
289 </actionbody> |
|
290 <actionresult> |
|
291 <return>KErrNone</return> |
|
292 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
293 </actionresult> |
|
294 </action> |
|
295 |
|
296 <action> |
|
297 <actionname>List certificates filtered by Issuer DN</actionname> |
|
298 <actiontype>listcert</actiontype> |
|
299 <actionbody> |
|
300 <filter> |
|
301 <ownertype>ca</ownertype> |
|
302 </filter> |
|
303 <issuerdn>c:\unifiedcertstore2\CAX2.cer</issuerdn> |
|
304 </actionbody> |
|
305 <actionresult> |
|
306 <return>KErrNone</return> |
|
307 </actionresult> |
|
308 </action> |
|
309 |
|
310 // Retrieve certs |
|
311 |
|
312 <action> |
|
313 <actionname>Retrieve CAX1 cert</actionname> |
|
314 <actiontype>retrieve</actiontype> |
|
315 <actionbody> |
|
316 <label>CAX1</label> |
|
317 </actionbody> |
|
318 <actionresult> |
|
319 <return>KErrNone</return> |
|
320 </actionresult> |
|
321 </action> |
|
322 |
|
323 <action> |
|
324 <actionname>Retrieve CAW1 cert</actionname> |
|
325 <actiontype>retrieve</actiontype> |
|
326 <actionbody> |
|
327 <label>CAW1</label> |
|
328 </actionbody> |
|
329 <actionresult> |
|
330 <return>KErrNone</return> |
|
331 </actionresult> |
|
332 </action> |
|
333 |
|
334 // Applications and trust ////////////////////////////////////////////////////// |
|
335 |
|
336 <action> |
|
337 <actionname>Set applications to the CAX1 certificate</actionname> |
|
338 <actiontype>setapplications</actiontype> |
|
339 <actionbody> |
|
340 <label>CAX1</label> |
|
341 <uid>1 2 3</uid> |
|
342 </actionbody> |
|
343 <actionresult> |
|
344 <return>KErrNone</return> |
|
345 </actionresult> |
|
346 </action> |
|
347 |
|
348 <action> |
|
349 <actionname>Get applications for CAX1</actionname> |
|
350 <actiontype>getapplications</actiontype> |
|
351 <actionbody> |
|
352 <label>CAX1</label> |
|
353 </actionbody> |
|
354 <actionresult> |
|
355 <return>KErrNone</return> |
|
356 <uid>1 2 3</uid> |
|
357 </actionresult> |
|
358 </action> |
|
359 |
|
360 <action> |
|
361 <actionname>Set the trust for CAX1</actionname> |
|
362 <actiontype>settrust</actiontype> |
|
363 <actionbody> |
|
364 <label>CAX1</label> |
|
365 <trust>1</trust> |
|
366 </actionbody> |
|
367 <actionresult> |
|
368 <return>KErrNone</return> |
|
369 </actionresult> |
|
370 </action> |
|
371 |
|
372 <action> |
|
373 <actionname>Get the trust for CAX1</actionname> |
|
374 <actiontype>gettrusters</actiontype> |
|
375 <actionbody> |
|
376 <label>CAX1</label> |
|
377 </actionbody> |
|
378 <actionresult> |
|
379 <return>KErrNone</return> |
|
380 <trust>1</trust> |
|
381 </actionresult> |
|
382 </action> |
|
383 |
|
384 // Delete certs //////////////////////////////////////////////////////////////// |
|
385 |
|
386 <action> |
|
387 <actionname>Deleting CAX1 certs</actionname> |
|
388 <actiontype>deletecert</actiontype> |
|
389 <actionbody> |
|
390 <certtype>ca</certtype> |
|
391 <label>CAX1</label> |
|
392 </actionbody> |
|
393 <actionresult> |
|
394 <return>KErrNone</return> |
|
395 </actionresult> |
|
396 </action> |
|
397 |
|
398 // Cleanup ///////////////////////////////////////////////////////////////////// |
|
399 |
|
400 <action> |
|
401 <actionname>Disabling cancellation testing</actionname> |
|
402 <actiontype>stopcancellation</actiontype> |
|
403 <actionresult> |
|
404 <return>KErrNone</return> |
|
405 </actionresult> |
|
406 </action> |
|
407 |
|
408 <action> |
|
409 <actionname>Deleting all certs</actionname> |
|
410 <actiontype>deletecert</actiontype> |
|
411 <actionbody> |
|
412 <label>*.*</label> |
|
413 <deleteallcerts>1</deleteallcerts> |
|
414 </actionbody> |
|
415 <actionresult> |
|
416 <return>KErrNone</return> |
|
417 </actionresult> |
|
418 </action> |
|
419 |
|
420 <action> |
|
421 <actionname>Deleting the writable certificate store manager</actionname> |
|
422 <actiontype>delete</actiontype> |
|
423 <actionbody></actionbody> |
|
424 <actionresult> |
|
425 <return>KErrNone</return> |
|
426 </actionresult> |
|
427 </action> |
|
428 |
|
429 <action> |
|
430 <actionname>No Test,Opening a CertificateAppInfoManager</actionname> |
|
431 <actiontype>initappmanager</actiontype> |
|
432 <actionbody></actionbody> |
|
433 <actionresult> |
|
434 <return>KErrNone</return> |
|
435 </actionresult> |
|
436 </action> |
|
437 |
|
438 <action> |
|
439 <actionname>No Test,Deleting the client A1</actionname> |
|
440 <actiontype>removeclient</actiontype> |
|
441 <actionbody> |
|
442 <uid>1</uid> |
|
443 </actionbody> |
|
444 <actionresult> |
|
445 <return>KErrNone</return> |
|
446 </actionresult> |
|
447 </action> |
|
448 |
|
449 <action> |
|
450 <actionname>No Test,Deleting the client A2</actionname> |
|
451 <actiontype>removeclient</actiontype> |
|
452 <actionbody> |
|
453 <uid>2</uid> |
|
454 </actionbody> |
|
455 <actionresult> |
|
456 <return>KErrNone</return> |
|
457 </actionresult> |
|
458 </action> |
|
459 |
|
460 <action> |
|
461 <actionname>No Test,Deleting the client A3</actionname> |
|
462 <actiontype>removeclient</actiontype> |
|
463 <actionbody> |
|
464 <uid>3</uid> |
|
465 </actionbody> |
|
466 <actionresult> |
|
467 <return>KErrNone</return> |
|
468 </actionresult> |
|
469 </action> |
|
470 |
|
471 <action> |
|
472 <actionname>No Test,Deleting the client A4</actionname> |
|
473 <actiontype>removeclient</actiontype> |
|
474 <actionbody> |
|
475 <uid>4</uid> |
|
476 </actionbody> |
|
477 <actionresult> |
|
478 <return>KErrNone</return> |
|
479 </actionresult> |
|
480 </action> |
|
481 |
|
482 <action> |
|
483 <actionname>No Test,Deleting the CertificateAppInfoManager</actionname> |
|
484 <actiontype>deleteappmanager</actiontype> |
|
485 <actionbody></actionbody> |
|
486 <actionresult> |
|
487 <return>KErrNone</return> |
|
488 </actionresult> |
|
489 </action> |