|
1 // |
|
2 // OOM 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>Opening a writable certificate store manager</actionname> |
|
75 <actiontype>init</actiontype> |
|
76 <actionbody> |
|
77 <mode>write</mode> |
|
78 </actionbody> |
|
79 <actionresult> |
|
80 <return>KErrNone</return> |
|
81 </actionresult> |
|
82 </action> |
|
83 |
|
84 <action> |
|
85 <actionname>Deleting all certs</actionname> |
|
86 <actiontype>deletecert</actiontype> |
|
87 <actionbody> |
|
88 <label>*.*</label> |
|
89 <deleteallcerts>1</deleteallcerts> |
|
90 </actionbody> |
|
91 <actionresult> |
|
92 <return>KErrNone</return> |
|
93 </actionresult> |
|
94 </action> |
|
95 |
|
96 <action> |
|
97 <actionname>Import a RSA key rsacertkey1</actionname> |
|
98 <actiontype>importkey</actiontype> |
|
99 <actionbody> |
|
100 <ImportData>rsacertkey1.txt</ImportData> |
|
101 <keyusage>AllUsagesButNR</keyusage> |
|
102 <keylabel>*IMPORTED* RSA key 1</keylabel> |
|
103 <keyaccesstype>Extractable</keyaccesstype> |
|
104 </actionbody> |
|
105 <actionresult> |
|
106 <return>KErrNone</return> |
|
107 </actionresult> |
|
108 </action> |
|
109 |
|
110 <action> |
|
111 <actionname>Start OOM testing</actionname> |
|
112 <actiontype>startmemfailure</actiontype> |
|
113 <actionbody></actionbody> |
|
114 <actionresult> |
|
115 <return>KErrNone</return> |
|
116 </actionresult> |
|
117 </action> |
|
118 |
|
119 // Add certs /////////////////////////////////////////////////////////////////// |
|
120 |
|
121 <action> |
|
122 <actionname>Add X509 CA certificate CAX1</actionname> |
|
123 <actiontype>addcert</actiontype> |
|
124 <actionbody> |
|
125 <format>X509</format> |
|
126 <label>CAX1</label> |
|
127 <issuerkey></issuerkey> |
|
128 <subjectkey></subjectkey> |
|
129 <certstore>0</certstore> |
|
130 <certfile>c:\unifiedcertstore2\CAX1.cer</certfile> |
|
131 <certowner>ca</certowner> |
|
132 </actionbody> |
|
133 <actionresult> |
|
134 <return>KErrNone</return> |
|
135 </actionresult> |
|
136 </action> |
|
137 |
|
138 <action> |
|
139 <actionname>Add WTLS CA certificate CAW1</actionname> |
|
140 <actiontype>addcert</actiontype> |
|
141 <actionbody> |
|
142 <format>WTLS</format> |
|
143 <label>CAW1</label> |
|
144 <issuerkey></issuerkey> |
|
145 <subjectkey></subjectkey> |
|
146 <certstore>0</certstore> |
|
147 <certfile>c:\unifiedcertstore2\CAW1.cer</certfile> |
|
148 <certowner>ca</certowner> |
|
149 </actionbody> |
|
150 <actionresult> |
|
151 <return>KErrNone</return> |
|
152 </actionresult> |
|
153 </action> |
|
154 |
|
155 <action> |
|
156 <actionname>Add X509 user certificate rsacert1</actionname> |
|
157 <actiontype>addcert</actiontype> |
|
158 <actionbody> |
|
159 <format>X509</format> |
|
160 <label>rsacert1</label> |
|
161 <issuerkey></issuerkey> |
|
162 <subjectkey>4808f03892fe836e78d048bcefcca4a37913d886</subjectkey> |
|
163 <certstore>0</certstore> |
|
164 <certfile>c:\unifiedcertstore2\rsacert1.cer</certfile> |
|
165 <certowner>user</certowner> |
|
166 </actionbody> |
|
167 <actionresult> |
|
168 <return>KErrNone</return> |
|
169 </actionresult> |
|
170 </action> |
|
171 |
|
172 // List certs ////////////////////////////////////////////////////////////////// |
|
173 |
|
174 <action> |
|
175 <actionname>List CA certificates</actionname> |
|
176 <actiontype>listcert</actiontype> |
|
177 <actionbody> |
|
178 <filter> |
|
179 <ownertype>ca</ownertype> |
|
180 </filter> |
|
181 </actionbody> |
|
182 <actionresult> |
|
183 <return>KErrNone</return> |
|
184 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
185 <CCTCertInfo><label>CAW1</label></CCTCertInfo> |
|
186 </actionresult> |
|
187 </action> |
|
188 |
|
189 <action> |
|
190 <actionname>List user certificates</actionname> |
|
191 <actiontype>listcert</actiontype> |
|
192 <actionbody> |
|
193 <filter> |
|
194 <ownertype>user</ownertype> |
|
195 <keyusagedescription> |
|
196 <keyusagescheme>pkcs15</keyusagescheme> |
|
197 <keytype>private</keytype> |
|
198 <keyusage>AllUsagesButNR</keyusage> |
|
199 </keyusagedescription> |
|
200 </filter> |
|
201 </actionbody> |
|
202 <actionresult> |
|
203 <return>KErrNone</return> |
|
204 <CCTCertInfo><label>rsacert1</label></CCTCertInfo> |
|
205 </actionresult> |
|
206 </action> |
|
207 |
|
208 <action> |
|
209 <actionname>List user certificates filtered by key usage</actionname> |
|
210 <actiontype>listcert</actiontype> |
|
211 <actionbody> |
|
212 <filter> |
|
213 <ownertype>user</ownertype> |
|
214 <keyusagedescription> |
|
215 <keyusagescheme>pkcs15</keyusagescheme> |
|
216 <keytype>private</keytype> |
|
217 <keyusage>Decrypt</keyusage> |
|
218 </keyusagedescription> |
|
219 </filter> |
|
220 </actionbody> |
|
221 <actionresult> |
|
222 <return>KErrNone</return> |
|
223 <CCTCertInfo><label>rsacert1</label></CCTCertInfo> |
|
224 </actionresult> |
|
225 </action> |
|
226 |
|
227 <action> |
|
228 <actionname>List user certificates filtered by key usage</actionname> |
|
229 <actiontype>listcert</actiontype> |
|
230 <actionbody> |
|
231 <filter> |
|
232 <ownertype>user</ownertype> |
|
233 <keyusagedescription> |
|
234 <keyusagescheme>pkcs15</keyusagescheme> |
|
235 <keyusage>NonRepudiation</keyusage> |
|
236 </keyusagedescription> |
|
237 </filter> |
|
238 </actionbody> |
|
239 <actionresult> |
|
240 <return>KErrNone</return> |
|
241 </actionresult> |
|
242 </action> |
|
243 |
|
244 <action> |
|
245 <actionname>List certificates filtered by Issuer DN</actionname> |
|
246 <actiontype>listcert</actiontype> |
|
247 <actionbody> |
|
248 <filter> |
|
249 <ownertype>ca</ownertype> |
|
250 </filter> |
|
251 <issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn> |
|
252 </actionbody> |
|
253 <actionresult> |
|
254 <return>KErrNone</return> |
|
255 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
256 </actionresult> |
|
257 </action> |
|
258 |
|
259 <action> |
|
260 <actionname>List certificates filtered by Issuer DN</actionname> |
|
261 <actiontype>listcert</actiontype> |
|
262 <actionbody> |
|
263 <filter> |
|
264 <ownertype>ca</ownertype> |
|
265 </filter> |
|
266 <issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn> |
|
267 <issuerdn>c:\unifiedcertstore2\CAX2.cer</issuerdn> |
|
268 </actionbody> |
|
269 <actionresult> |
|
270 <return>KErrNone</return> |
|
271 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
272 </actionresult> |
|
273 </action> |
|
274 |
|
275 <action> |
|
276 <actionname>List certificates filtered by Issuer DN</actionname> |
|
277 <actiontype>listcert</actiontype> |
|
278 <actionbody> |
|
279 <filter> |
|
280 <ownertype>ca</ownertype> |
|
281 </filter> |
|
282 <issuerdn>c:\unifiedcertstore2\CAX2.cer</issuerdn> |
|
283 </actionbody> |
|
284 <actionresult> |
|
285 <return>KErrNone</return> |
|
286 </actionresult> |
|
287 </action> |
|
288 |
|
289 // Applications and trust ////////////////////////////////////////////////////// |
|
290 |
|
291 <action> |
|
292 <actionname>Set applications to the CAX1 certificate</actionname> |
|
293 <actiontype>setapplications</actiontype> |
|
294 <actionbody> |
|
295 <label>CAX1</label> |
|
296 <uid>1 2 3</uid> |
|
297 </actionbody> |
|
298 <actionresult> |
|
299 <return>KErrNone</return> |
|
300 </actionresult> |
|
301 </action> |
|
302 |
|
303 <action> |
|
304 <actionname>Get applications for CAX1</actionname> |
|
305 <actiontype>getapplications</actiontype> |
|
306 <actionbody> |
|
307 <label>CAX1</label> |
|
308 </actionbody> |
|
309 <actionresult> |
|
310 <return>KErrNone</return> |
|
311 <uid>1 2 3</uid> |
|
312 </actionresult> |
|
313 </action> |
|
314 |
|
315 <action> |
|
316 <actionname>Set the trust for CAX1</actionname> |
|
317 <actiontype>settrust</actiontype> |
|
318 <actionbody> |
|
319 <label>CAX1</label> |
|
320 <trust>1</trust> |
|
321 </actionbody> |
|
322 <actionresult> |
|
323 <return>KErrNone</return> |
|
324 </actionresult> |
|
325 </action> |
|
326 |
|
327 <action> |
|
328 <actionname>Get the trust for CAX1</actionname> |
|
329 <actiontype>gettrusters</actiontype> |
|
330 <actionbody> |
|
331 <label>CAX1</label> |
|
332 </actionbody> |
|
333 <actionresult> |
|
334 <return>KErrNone</return> |
|
335 <trust>1</trust> |
|
336 </actionresult> |
|
337 </action> |
|
338 |
|
339 // Delete certs //////////////////////////////////////////////////////////////// |
|
340 |
|
341 <action> |
|
342 <actionname>Deleting all certs</actionname> |
|
343 <actiontype>deletecert</actiontype> |
|
344 <actionbody> |
|
345 <label>*.*</label> |
|
346 <deleteallcerts>1</deleteallcerts> |
|
347 </actionbody> |
|
348 <actionresult> |
|
349 <return>KErrNone</return> |
|
350 </actionresult> |
|
351 </action> |
|
352 |
|
353 // Cleanup ///////////////////////////////////////////////////////////////////// |
|
354 |
|
355 <action> |
|
356 <actionname>None</actionname> |
|
357 <actiontype>stopmemfailure</actiontype> |
|
358 <actionbody></actionbody> |
|
359 <actionresult> |
|
360 <return>KErrNone</return> |
|
361 </actionresult> |
|
362 </action> |
|
363 |
|
364 <action> |
|
365 <actionname>Deleting the writable certificate store manager</actionname> |
|
366 <actiontype>delete</actiontype> |
|
367 <actionbody></actionbody> |
|
368 <actionresult> |
|
369 <return>KErrNone</return> |
|
370 </actionresult> |
|
371 </action> |
|
372 |
|
373 <action> |
|
374 <actionname>No Test,Opening a CertificateAppInfoManager</actionname> |
|
375 <actiontype>initappmanager</actiontype> |
|
376 <actionbody></actionbody> |
|
377 <actionresult> |
|
378 <return>KErrNone</return> |
|
379 </actionresult> |
|
380 </action> |
|
381 |
|
382 <action> |
|
383 <actionname>No Test,Deleting the client A1</actionname> |
|
384 <actiontype>removeclient</actiontype> |
|
385 <actionbody> |
|
386 <uid>1</uid> |
|
387 </actionbody> |
|
388 <actionresult> |
|
389 <return>KErrNone</return> |
|
390 </actionresult> |
|
391 </action> |
|
392 |
|
393 <action> |
|
394 <actionname>No Test,Deleting the client A2</actionname> |
|
395 <actiontype>removeclient</actiontype> |
|
396 <actionbody> |
|
397 <uid>2</uid> |
|
398 </actionbody> |
|
399 <actionresult> |
|
400 <return>KErrNone</return> |
|
401 </actionresult> |
|
402 </action> |
|
403 |
|
404 <action> |
|
405 <actionname>No Test,Deleting the client A3</actionname> |
|
406 <actiontype>removeclient</actiontype> |
|
407 <actionbody> |
|
408 <uid>3</uid> |
|
409 </actionbody> |
|
410 <actionresult> |
|
411 <return>KErrNone</return> |
|
412 </actionresult> |
|
413 </action> |
|
414 |
|
415 <action> |
|
416 <actionname>No Test,Deleting the client A4</actionname> |
|
417 <actiontype>removeclient</actiontype> |
|
418 <actionbody> |
|
419 <uid>4</uid> |
|
420 </actionbody> |
|
421 <actionresult> |
|
422 <return>KErrNone</return> |
|
423 </actionresult> |
|
424 </action> |
|
425 |
|
426 <action> |
|
427 <actionname>No Test,Deleting the CertificateAppInfoManager</actionname> |
|
428 <actiontype>deleteappmanager</actiontype> |
|
429 <actionbody></actionbody> |
|
430 <actionresult> |
|
431 <return>KErrNone</return> |
|
432 </actionresult> |
|
433 </action> |