Lines Matching full:data

28 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
54 echo "create signed data (ec)"
56 --certificate=FILE:$srcdir/data/secp160r2TestClient.pem \
58 sd.data > /dev/null || exit 1
60 echo "verify signed data (ec)"
63 --anchors=FILE:$srcdir/data/secp160r1TestCA.cert.pem \
64 sd.data sd.data.out > /dev/null || exit 1
65 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
68 echo "create signed data"
70 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
72 sd.data > /dev/null || exit 1
74 echo "verify signed data"
77 --anchors=FILE:$srcdir/data/ca.crt \
78 sd.data sd.data.out > /dev/null || exit 1
79 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
81 echo "create signed data (no signer)"
84 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
86 sd.data > /dev/null || exit 1
88 echo "verify signed data (no signer)"
92 --anchors=FILE:$srcdir/data/ca.crt \
93 sd.data sd.data.out > signer.tmp || exit 1
94 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
97 echo "verify signed data (no signer) (test failure)"
100 --anchors=FILE:$srcdir/data/ca.crt \
101 sd.data sd.data.out 2> signer.tmp && exit 1
104 echo "create signed data (id-by-name)"
106 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
109 sd.data > /dev/null || exit 1
111 echo "verify signed data"
114 --anchors=FILE:$srcdir/data/ca.crt \
115 sd.data sd.data.out > /dev/null || exit 1
116 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
118 echo "verify signed data (EE cert as anchor)"
121 --anchors=FILE:$srcdir/data/test.crt \
122 sd.data sd.data.out > /dev/null || exit 1
123 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
125 echo "create signed data (password)"
128 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test-pw.key \
130 sd.data > /dev/null || exit 1
132 echo "verify signed data"
135 --anchors=FILE:$srcdir/data/ca.crt \
136 sd.data sd.data.out > /dev/null || exit 1
137 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
139 echo "create signed data (combined)"
141 --certificate=FILE:$srcdir/data/test.combined.crt \
143 sd.data > /dev/null || exit 1
145 echo "verify signed data"
148 --anchors=FILE:$srcdir/data/ca.crt \
149 sd.data sd.data.out > /dev/null || exit 1
150 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
152 echo "create signed data (content info)"
154 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
157 sd.data > /dev/null || exit 1
159 echo "verify signed data (content info)"
162 --anchors=FILE:$srcdir/data/ca.crt \
164 sd.data sd.data.out > /dev/null || exit 1
165 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
167 echo "create signed data (content type)"
169 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
172 sd.data > /dev/null || exit 1
174 echo "verify signed data (content type)"
177 --anchors=FILE:$srcdir/data/ca.crt \
178 sd.data sd.data.out > /dev/null || exit 1
179 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
181 echo "create signed data (pem)"
183 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
186 sd.data > /dev/null || exit 1
188 echo "verify signed data (pem)"
191 --anchors=FILE:$srcdir/data/ca.crt \
193 sd.data sd.data.out > /dev/null
194 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
196 echo "create signed data (pem, detached)"
198 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
202 sd.data > /dev/null || exit 1
204 echo "verify signed data (pem, detached)"
207 --anchors=FILE:$srcdir/data/ca.crt \
210 sd.data sd.data.out > /dev/null
211 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
213 echo "create signed data (p12)"
216 --certificate=PKCS12:$srcdir/data/test.p12 \
219 sd.data > /dev/null || exit 1
221 echo "verify signed data"
224 --anchors=FILE:$srcdir/data/ca.crt \
226 "$srcdir/data/test-signed-data" sd.data.out > /dev/null || exit 1
227 cmp "$srcdir/data/static-file" sd.data.out || exit 1
229 echo "verify signed data (no attr)"
232 --anchors=FILE:$srcdir/data/ca.crt \
234 "$srcdir/data/test-signed-data-noattr" sd.data.out > /dev/null || exit 1
235 cmp "$srcdir/data/static-file" sd.data.out || exit 1
237 echo "verify failure signed data (no attr, no certs)"
240 --anchors=FILE:$srcdir/data/ca.crt \
242 "$srcdir/data/test-signed-data-noattr-nocerts" \
243 sd.data.out > /dev/null 2>/dev/null && exit 1
245 echo "verify signed data (no attr, no certs)"
248 --anchors=FILE:$srcdir/data/ca.crt \
249 --certificate=FILE:$srcdir/data/test.crt \
251 "$srcdir/data/test-signed-data-noattr-nocerts" \
252 sd.data.out > /dev/null || exit 1
253 cmp "$srcdir/data/static-file" sd.data.out || exit 1
255 echo "verify signed data - sha1"
258 --anchors=FILE:$srcdir/data/ca.crt \
260 "$srcdir/data/test-signed-sha-1" sd.data.out > /dev/null || exit 1
261 cmp "$srcdir/data/static-file" sd.data.out || exit 1
263 echo "verify signed data - sha256"
266 --anchors=FILE:$srcdir/data/ca.crt \
268 "$srcdir/data/test-signed-sha-256" sd.data.out > /dev/null || exit 1
269 cmp "$srcdir/data/static-file" sd.data.out || exit 1
271 #echo "verify signed data - sha512"
274 # --anchors=FILE:$srcdir/data/ca.crt \
276 # "$srcdir/data/test-signed-sha-512" sd.data.out > /dev/null || exit 1
277 #cmp "$srcdir/data/static-file" sd.data.out || exit 1
280 echo "create signed data (subcert, no certs)"
282 --certificate=FILE:$srcdir/data/sub-cert.crt,$srcdir/data/sub-cert.key \
284 sd.data > /dev/null || exit 1
286 echo "verify failure signed data"
289 --anchors=FILE:$srcdir/data/ca.crt \
290 sd.data sd.data.out > /dev/null 2> /dev/null && exit 1
292 echo "verify success signed data"
295 --certificate=FILE:$srcdir/data/sub-ca.crt \
296 --anchors=FILE:$srcdir/data/ca.crt \
297 sd.data sd.data.out > /dev/null || exit 1
298 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
300 echo "create signed data (subcert, certs)"
302 --certificate=FILE:$srcdir/data/sub-cert.crt,$srcdir/data/sub-cert.key \
303 --pool=FILE:$srcdir/data/sub-ca.crt \
304 --anchors=FILE:$srcdir/data/ca.crt \
306 sd.data > /dev/null || exit 1
308 echo "verify success signed data"
311 --anchors=FILE:$srcdir/data/ca.crt \
312 sd.data sd.data.out > /dev/null || exit 1
313 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
315 echo "create signed data (subcert, certs, no-root)"
317 --certificate=FILE:$srcdir/data/sub-cert.crt,$srcdir/data/sub-cert.key \
318 --pool=FILE:$srcdir/data/sub-ca.crt \
320 sd.data > /dev/null || exit 1
322 echo "verify success signed data"
325 --anchors=FILE:$srcdir/data/ca.crt \
326 sd.data sd.data.out > /dev/null || exit 1
327 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
329 echo "create signed data (subcert, no-subca, no-root)"
331 --certificate=FILE:$srcdir/data/sub-cert.crt,$srcdir/data/sub-cert.key \
333 sd.data > /dev/null || exit 1
335 echo "verify failure signed data"
338 --anchors=FILE:$srcdir/data/ca.crt \
339 sd.data sd.data.out > /dev/null 2>/dev/null && exit 1
341 echo "create signed data (sd cert)"
343 --certificate=FILE:$srcdir/data/test-ds-only.crt,$srcdir/data/test-ds-only.key \
345 sd.data > /dev/null || exit 1
347 echo "create signed data (ke cert)"
349 --certificate=FILE:$srcdir/data/test-ke-only.crt,$srcdir/data/test-ke-only.key \
351 sd.data > /dev/null 2>/dev/null && exit 1
353 echo "create signed data (sd + ke certs)"
355 --certificate=FILE:$srcdir/data/test-ke-only.crt,$srcdir/data/test-ke-only.key \
356 --certificate=FILE:$srcdir/data/test-ds-only.crt,$srcdir/data/test-ds-only.key \
358 sd.data > /dev/null || exit 1
360 echo "create signed data (ke + sd certs)"
362 --certificate=FILE:$srcdir/data/test-ds-only.crt,$srcdir/data/test-ds-only.key \
363 --certificate=FILE:$srcdir/data/test-ke-only.crt,$srcdir/data/test-ke-only.key \
365 sd.data > /dev/null || exit 1
367 echo "create signed data (detached)"
369 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
372 sd.data > /dev/null || exit 1
374 echo "verify signed data (detached)"
378 --anchors=FILE:$srcdir/data/ca.crt \
379 sd.data sd.data.out > /dev/null || exit 1
380 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
382 echo "verify failure signed data (detached)"
385 --anchors=FILE:$srcdir/data/ca.crt \
386 sd.data sd.data.out > /dev/null 2>/dev/null && exit 1
388 echo "create signed data (rsa)"
391 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
393 sd.data > /dev/null || exit 1
395 echo "verify signed data (rsa)"
398 --anchors=FILE:$srcdir/data/ca.crt \
399 sd.data sd.data.out > /dev/null 2>/dev/null || exit 1
400 cmp "$srcdir/test_chain.in" sd.data.out || exit 1
402 echo "create signed data (pem, detached)"
405 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
410 echo "verify signed data (pem, detached)"
413 --anchors=FILE:$srcdir/data/ca.crt \
417 echo "create signed data (no certs, detached sig)"
420 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
423 "$srcdir/data/static-file" \
426 echo "create signed data (leif only, detached sig)"
429 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
432 "$srcdir/data/static-file" \
435 echo "create signed data (no certs, detached sig, 2 signers)"
438 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
439 --certificate=FILE:$srcdir/data/sub-cert.crt,$srcdir/data/sub-cert.key \
442 "$srcdir/data/static-file" \
445 echo "create signed data (no certs, detached sig, 3 signers)"
448 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
449 --certificate=FILE:$srcdir/data/sub-cert.crt,$srcdir/data/sub-cert.key \
450 --certificate=FILE:$srcdir/data/test-ds-only.crt,$srcdir/data/test-ds-only.key \
453 "$srcdir/data/static-file" \
456 echo "envelope data (content-type)"
458 --certificate=FILE:$srcdir/data/test.crt \
460 "$srcdir/data/static-file" \
461 ev.data > /dev/null || exit 1
463 echo "unenvelope data (content-type)"
465 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
466 ev.data ev.data.out \
467 FILE:$srcdir/data/test.crt,$srcdir/data/test.key > /dev/null || exit 1
468 cmp "$srcdir/data/static-file" ev.data.out || exit 1
470 echo "envelope data (content-info)"
472 --certificate=FILE:$srcdir/data/test.crt \
474 "$srcdir/data/static-file" \
475 ev.data > /dev/null || exit 1
477 echo "unenvelope data (content-info)"
479 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
481 ev.data ev.data.out \
482 FILE:$srcdir/data/test.crt,$srcdir/data/test.key > /dev/null || exit 1
483 cmp "$srcdir/data/static-file" ev.data.out || exit 1
487 rm -f ev.data ev.data.out
488 echo "envelope data ($a)"
491 --certificate=FILE:$srcdir/data/test.crt \
492 "$srcdir/data/static-file" \
493 ev.data || exit 1
495 echo "unenvelope data ($a)"
497 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
498 ev.data ev.data.out > /dev/null || exit 1
499 cmp "$srcdir/data/static-file" ev.data.out || exit 1
503 echo "static unenvelope data ($a)"
505 rm -f ev.data.out
507 --certificate=FILE:$srcdir/data/test.crt,$srcdir/data/test.key \
510 "$srcdir/data/test-enveloped-$a" ev.data.out > /dev/null || exit 1
511 cmp "$srcdir/data/static-file" ev.data.out || exit 1