|
1 // reload.txt |
|
2 // |
|
3 // Test that certs and cert meta data stay in the cert store after it is |
|
4 // reloaded. |
|
5 |
|
6 // 0. Setup |
|
7 |
|
8 <action> |
|
9 <actionname>0.1, Opening a CertificateAppInfoManager</actionname> |
|
10 <actiontype>initappmanager</actiontype> |
|
11 <actionbody></actionbody> |
|
12 <actionresult> |
|
13 <return>KErrNone</return> |
|
14 </actionresult> |
|
15 </action> |
|
16 |
|
17 <action> |
|
18 <actionname>0.2, Adding client A1</actionname> |
|
19 <actiontype>addclient</actiontype> |
|
20 <actionbody> |
|
21 <name>A1</name> |
|
22 <uid>1</uid> |
|
23 </actionbody> |
|
24 <actionresult> |
|
25 <return>KErrNone</return> |
|
26 </actionresult> |
|
27 </action> |
|
28 |
|
29 <action> |
|
30 <actionname>0.3, Adding client A2</actionname> |
|
31 <actiontype>addclient</actiontype> |
|
32 <actionbody> |
|
33 <name>A2</name> |
|
34 <uid>2</uid> |
|
35 </actionbody> |
|
36 <actionresult> |
|
37 <return>KErrNone</return> |
|
38 </actionresult> |
|
39 </action> |
|
40 |
|
41 <action> |
|
42 <actionname>0.4, Adding client A3</actionname> |
|
43 <actiontype>addclient</actiontype> |
|
44 <actionbody> |
|
45 <name>A3</name> |
|
46 <uid>3</uid> |
|
47 </actionbody> |
|
48 <actionresult> |
|
49 <return>KErrNone</return> |
|
50 </actionresult> |
|
51 </action> |
|
52 |
|
53 <action> |
|
54 <actionname>0.5, Deleting the CertificateAppInfoManager</actionname> |
|
55 <actiontype>deleteappmanager</actiontype> |
|
56 <actionbody></actionbody> |
|
57 <actionresult> |
|
58 <return>KErrNone</return> |
|
59 </actionresult> |
|
60 </action> |
|
61 |
|
62 <action> |
|
63 <actionname>0.6, Import a RSA key</actionname> |
|
64 <actiontype>importkey</actiontype> |
|
65 <actionbody> |
|
66 <ImportData>rsacertkey1.txt</ImportData> |
|
67 <keyusage>AllUsagesButNR</keyusage> |
|
68 <keylabel>*IMPORTED* RSA key 1</keylabel> |
|
69 <keyaccesstype>Extractable</keyaccesstype> |
|
70 </actionbody> |
|
71 <actionresult> |
|
72 <return>KErrNone</return> |
|
73 </actionresult> |
|
74 </action> |
|
75 |
|
76 <action> |
|
77 <actionname>0.7, Opening a certificate store manager</actionname> |
|
78 <actiontype>init</actiontype> |
|
79 <actionbody> |
|
80 <mode>write</mode> |
|
81 </actionbody> |
|
82 <actionresult> |
|
83 <return>KErrNone</return> |
|
84 </actionresult> |
|
85 </action> |
|
86 |
|
87 <action> |
|
88 <actionname>0.8, Deleting all certs</actionname> |
|
89 <actiontype>deletecert</actiontype> |
|
90 <actionbody> |
|
91 <label>*.*</label> |
|
92 <deleteallcerts>1</deleteallcerts> |
|
93 </actionbody> |
|
94 <actionresult> |
|
95 <return>KErrNone</return> |
|
96 </actionresult> |
|
97 </action> |
|
98 |
|
99 <action> |
|
100 <actionname>0.9, Add the certificate CAX1</actionname> |
|
101 <actiontype>addcert</actiontype> |
|
102 <actionbody> |
|
103 <format>X509</format> |
|
104 <label>CAX1</label> |
|
105 <issuerkey></issuerkey> |
|
106 <subjectkey></subjectkey> |
|
107 <certstore>0</certstore> |
|
108 <certfile>c:\unifiedcertstore2\CAX1.cer</certfile> |
|
109 <certowner>ca</certowner> |
|
110 </actionbody> |
|
111 <actionresult> |
|
112 <return>KErrNone</return> |
|
113 </actionresult> |
|
114 </action> |
|
115 |
|
116 <action> |
|
117 <actionname>0.10, Add certificate rsacert1</actionname> |
|
118 <actiontype>addcert</actiontype> |
|
119 <actionbody> |
|
120 <format>X509</format> |
|
121 <label>rsacert1</label> |
|
122 <issuerkey></issuerkey> |
|
123 <subjectkey>4808f03892fe836e78d048bcefcca4a37913d886</subjectkey> |
|
124 <certstore>0</certstore> |
|
125 <certfile>c:\unifiedcertstore2\rsacert1.cer</certfile> |
|
126 <certowner>user</certowner> |
|
127 </actionbody> |
|
128 <actionresult> |
|
129 <return>KErrNone</return> |
|
130 </actionresult> |
|
131 </action> |
|
132 |
|
133 <action> |
|
134 <actionname>0.11, Get the list of CA certificates</actionname> |
|
135 <actiontype>listcert</actiontype> |
|
136 <actionbody> |
|
137 <filter> |
|
138 <ownertype>ca</ownertype> |
|
139 </filter> |
|
140 </actionbody> |
|
141 <actionresult> |
|
142 <return>KErrNone</return> |
|
143 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
144 </actionresult> |
|
145 </action> |
|
146 |
|
147 <action> |
|
148 <actionname>0.12, Get the list of user certificates</actionname> |
|
149 <actiontype>listcert</actiontype> |
|
150 <actionbody> |
|
151 <filter> |
|
152 <ownertype>user</ownertype> |
|
153 </filter> |
|
154 </actionbody> |
|
155 <actionresult> |
|
156 <return>KErrNone</return> |
|
157 <CCTCertInfo><label>rsacert1</label></CCTCertInfo> |
|
158 </actionresult> |
|
159 </action> |
|
160 |
|
161 <action> |
|
162 <actionname>0.13, Set applications to the CAX1 certificate</actionname> |
|
163 <actiontype>setapplications</actiontype> |
|
164 <actionbody> |
|
165 <label>CAX1</label> |
|
166 <uid>1 2 3</uid> |
|
167 </actionbody> |
|
168 <actionresult> |
|
169 <return>KErrNone</return> |
|
170 </actionresult> |
|
171 </action> |
|
172 |
|
173 <action> |
|
174 <actionname>0.14, Get applications for CAX1</actionname> |
|
175 <actiontype>getapplications</actiontype> |
|
176 <actionbody> |
|
177 <label>CAX1</label> |
|
178 </actionbody> |
|
179 <actionresult> |
|
180 <return>KErrNone</return> |
|
181 <uid>1 2 3</uid> |
|
182 </actionresult> |
|
183 </action> |
|
184 |
|
185 <action> |
|
186 <actionname>0.15, Set the trust for CAX1</actionname> |
|
187 <actiontype>settrust</actiontype> |
|
188 <actionbody> |
|
189 <label>CAX1</label> |
|
190 <trust>1</trust> |
|
191 </actionbody> |
|
192 <actionresult> |
|
193 <return>KErrNone</return> |
|
194 </actionresult> |
|
195 </action> |
|
196 |
|
197 <action> |
|
198 <actionname>0.16, Get the trust for CAX1</actionname> |
|
199 <actiontype>gettrusters</actiontype> |
|
200 <actionbody> |
|
201 <label>CAX1</label> |
|
202 </actionbody> |
|
203 <actionresult> |
|
204 <return>KErrNone</return> |
|
205 <trust>1</trust> |
|
206 </actionresult> |
|
207 </action> |
|
208 |
|
209 <action> |
|
210 <actionname>0.21, Deleting the writable certificate store manager</actionname> |
|
211 <actiontype>delete</actiontype> |
|
212 <actionbody></actionbody> |
|
213 <actionresult> |
|
214 <return>KErrNone</return> |
|
215 </actionresult> |
|
216 </action> |
|
217 |
|
218 <action> |
|
219 <actionname>0.22, Sleep 5 seconds so server exits</actionname> |
|
220 <actiontype>sleep</actiontype> |
|
221 <actionbody> |
|
222 <seconds>5</seconds> |
|
223 </actionbody> |
|
224 <actionresult> |
|
225 <return>KErrNone</return> |
|
226 </actionresult> |
|
227 </action> |
|
228 |
|
229 // 1. Test things are still as we left them when the server restarts |
|
230 |
|
231 <action> |
|
232 <actionname>1.1, Opening a certificate store manager</actionname> |
|
233 <actiontype>init</actiontype> |
|
234 <actionbody> |
|
235 <mode>write</mode> |
|
236 </actionbody> |
|
237 <actionresult> |
|
238 <return>KErrNone</return> |
|
239 </actionresult> |
|
240 </action> |
|
241 |
|
242 <action> |
|
243 <actionname>1.2, Get the list of CA certificates</actionname> |
|
244 <actiontype>listcert</actiontype> |
|
245 <actionbody> |
|
246 <filter> |
|
247 <ownertype>ca</ownertype> |
|
248 </filter> |
|
249 </actionbody> |
|
250 <actionresult> |
|
251 <return>KErrNone</return> |
|
252 <CCTCertInfo><label>CAX1</label></CCTCertInfo> |
|
253 </actionresult> |
|
254 </action> |
|
255 |
|
256 <action> |
|
257 <actionname>1.3, Get the list of user certificates</actionname> |
|
258 <actiontype>listcert</actiontype> |
|
259 <actionbody> |
|
260 <filter> |
|
261 <ownertype>user</ownertype> |
|
262 </filter> |
|
263 </actionbody> |
|
264 <actionresult> |
|
265 <return>KErrNone</return> |
|
266 <CCTCertInfo><label>rsacert1</label></CCTCertInfo> |
|
267 </actionresult> |
|
268 </action> |
|
269 |
|
270 <action> |
|
271 <actionname>1.4, Get applications for CAX1</actionname> |
|
272 <actiontype>getapplications</actiontype> |
|
273 <actionbody> |
|
274 <label>CAX1</label> |
|
275 </actionbody> |
|
276 <actionresult> |
|
277 <return>KErrNone</return> |
|
278 <uid>1 2 3</uid> |
|
279 </actionresult> |
|
280 </action> |
|
281 |
|
282 <action> |
|
283 <actionname>1.5, Get the trust for CAX1</actionname> |
|
284 <actiontype>gettrusters</actiontype> |
|
285 <actionbody> |
|
286 <label>CAX1</label> |
|
287 </actionbody> |
|
288 <actionresult> |
|
289 <return>KErrNone</return> |
|
290 <trust>1</trust> |
|
291 </actionresult> |
|
292 </action> |
|
293 |
|
294 // 2. Cleanup |
|
295 |
|
296 <action> |
|
297 <actionname>2.0, Opening a CertificateAppInfoManager</actionname> |
|
298 <actiontype>initappmanager</actiontype> |
|
299 <actionbody></actionbody> |
|
300 <actionresult> |
|
301 <return>KErrNone</return> |
|
302 </actionresult> |
|
303 </action> |
|
304 |
|
305 <action> |
|
306 <actionname>2.1, Deleting the client A1</actionname> |
|
307 <actiontype>removeclient</actiontype> |
|
308 <actionbody> |
|
309 <uid>1</uid> |
|
310 </actionbody> |
|
311 <actionresult> |
|
312 <return>KErrNone</return> |
|
313 </actionresult> |
|
314 </action> |
|
315 |
|
316 <action> |
|
317 <actionname>2.2, Deleting the client A2</actionname> |
|
318 <actiontype>removeclient</actiontype> |
|
319 <actionbody> |
|
320 <uid>2</uid> |
|
321 </actionbody> |
|
322 <actionresult> |
|
323 <return>KErrNone</return> |
|
324 </actionresult> |
|
325 </action> |
|
326 |
|
327 <action> |
|
328 <actionname>2.3, Deleting the client A3</actionname> |
|
329 <actiontype>removeclient</actiontype> |
|
330 <actionbody> |
|
331 <uid>3</uid> |
|
332 </actionbody> |
|
333 <actionresult> |
|
334 <return>KErrNone</return> |
|
335 </actionresult> |
|
336 </action> |
|
337 |
|
338 <action> |
|
339 <actionname>2.4, Deleting the CertificateAppInfoManager</actionname> |
|
340 <actiontype>deleteappmanager</actiontype> |
|
341 <actionbody></actionbody> |
|
342 <actionresult> |
|
343 <return>KErrNone</return> |
|
344 </actionresult> |
|
345 </action> |