source: heimdal/trunk/lib/hx509/data/test-signed-sha-1

Last change on this file was 1, checked in by Paul Smedley, 10 years ago

Initial commit of Heimdal 1.5.3

  • Property svn:mime-type set to application/octet-stream
File size: 3.8 KB
Line 
10‚7 *†H†÷
2 ‚(0‚$1
30 +0‚
4D *†H†÷
5 ‚
65‚
71This is a static file don't change the content, it is used in the test
8
9#!/bin/sh
10#
11# Copyright (c) 2005 Kungliga Tekniska Högskolan
12# (Royal Institute of Technology, Stockholm, Sweden).
13# All rights reserved.
14#
15# Redistribution and use in source and binary forms, with or without
16# modification, are permitted provided that the following conditions
17# are met:
18#
19# 1. Redistributions of source code must retain the above copyright
20# notice, this list of conditions and the following disclaimer.
21#
22# 2. Redistributions in binary form must reproduce the above copyright
23# notice, this list of conditions and the following disclaimer in the
24# documentation and/or other materials provided with the distribution.
25#
26# 3. Neither the name of the Institute nor the names of its contributors
27# may be used to endorse or promote products derived from this software
28# without specific prior written permission.
29#
30# THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
31# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33# ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
34# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
35# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
36# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
37# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
38# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
39# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40# SUCH DAMAGE.
41#
42#
43
44srcdir="@srcdir@"
45
46echo "try printing"
47./hxtool print \
48 --pass=PASS:foobar \
49 PKCS12:$srcdir/data/test.p12 || exit 1
50
51echo "make sure entry is found (friendlyname)"
52./hxtool query \
53 --pass=PASS:foobar \
54 --friendlyname=friendlyname-test \
55 PKCS12:$srcdir/data/test.p12 || exit 1
56
57echo "make sure entry is not found (friendlyname)"
58./hxtool query \
59 --pass=PASS:foobar \
60 --friendlyname=friendlyname-test-not \
61 PKCS12:$srcdir/data/test.p12 && exit 1
62
63echo "check for ca cert (friendlyname)"
64./hxtool query \
65 --pass=PASS:foobar \
66 --friendlyname=ca \
67 PKCS12:$srcdir/data/test.p12 || exit 1
68
69echo "make sure entry is not found (friendlyname)"
70./hxtool query \
71 --pass=PASS:foobar \
72 --friendlyname=friendlyname-test \
73 PKCS12:$srcdir/data/sub-cert.p12 && exit 1
74
75echo "make sure entry is found (friendlyname|private key)"
76./hxtool query \
77 --pass=PASS:foobar \
78 --friendlyname=friendlyname-test \
79 --private-key \
80 PKCS12:$srcdir/data/test.p12 || exit 1
81
82echo "make sure entry is not found (friendlyname|private key)"
83./hxtool query \
84 --pass=PASS:foobar \
85 --friendlyname=ca \
86 --private-key \
87 PKCS12:$srcdir/data/test.p12 && exit 1
88
89exit 0
90
91 ‚þ0‚ú0‚c 0
92 *†H†÷
930*10U
94hx509 Test Root CA1
950 USE0
96
97090426202940Z
98190424202940Z0!1
990 USE10U
100 Test cert0Ÿ0
101 *†H†÷
1020‰èjŠí†ã¶yÌ«ÃÔÏ0ôÜ*qà „sÖ€U¶qä3ý·£ãmÔÿ)ÒV@c俊~ÿ[éjÎPŽã…
103¡"ÍÂŽåF²>…
104{¥M>zžÇ|Ð-û•`Ñ@BŒ(®ñ<|_ÊäüJ*
105ïM T·y»¿Í ’fž”áÿ£9070 U
10600
107U
108à0
109U
110ÎwnÞ
111ô!øxÀ|ùfìL=J#0
112 *†H†÷
113E#0ôΞɶ .J dœŸWÕdíJ•£š<V{Š.l77®*±B.
114ž~WõZ8)xS³-È—ó«QjÄ߆—ÊhU9àø™Zœ€á4P4pÒt-žïžÒ":Ο‚šK³2͍
115i}
116×¶3ÜhAv¡6 Žº4EŸqœ«¿tw‡æ¿1‚Æ0‚Â0/0*10U
117hx509 Test Root CA1
1180 USE0 + î0 *†H†÷
119 1
120 *†H†÷
1210
122 *†H†÷
123 1
124090426202941Z0# *†H†÷
125 1޹
126HЍùR^¯n¡þÔº0Ž *†H†÷
127 1€0~0
128 `†He*0*…
129 0*…
1300
131 `†He0
132 `†He0
133*†H†÷
1340*†H†÷
135€0
136*†H†÷
137@0+0
138*†H†÷
139(0
140 *†H†÷
141€ì6X¿1ÞèKÆõçg£ê™®m8Ê]ã:אsONIUþöÉO=ž±Cövœj4µ`"®
142ŸU‰œ©©×S\AÍ«€„Þ§NµÑ±?˜-ða€VË
143ýÑIL!DOžj¬Œ kÕ6m@œëäcè¹u
144˜Ã–
Note: See TracBrowser for help on using the repository browser.