Nils Larsch reported that this include is required. Strange that this had
[openssl.git] / test / testca
1 #!/bin/sh
2
3 SH="/bin/sh"
4 if test "$OSTYPE" = msdosdjgpp; then
5     PATH=./apps\;../apps\;$PATH
6 else
7     PATH=../apps:$PATH
8 fi
9 export SH PATH
10
11 SSLEAY_CONFIG="-config CAss.cnf"
12 export SSLEAY_CONFIG
13
14 /bin/rm -fr demoCA
15 $SH ../apps/CA.sh -newca <<EOF
16 EOF
17
18 if [ $? != 0 ]; then
19         exit 1;
20 fi
21
22 SSLEAY_CONFIG="-config Uss.cnf"
23 export SSLEAY_CONFIG
24 $SH ../apps/CA.sh -newreq
25 if [ $? != 0 ]; then
26         exit 1;
27 fi
28
29
30 SSLEAY_CONFIG="-config ../apps/openssl.cnf"
31 export SSLEAY_CONFIG
32 $SH ../apps/CA.sh -sign  <<EOF
33 y
34 y
35 EOF
36 if [ $? != 0 ]; then
37         exit 1;
38 fi
39
40
41 $SH ../apps/CA.sh -verify newcert.pem
42 if [ $? != 0 ]; then
43         exit 1;
44 fi
45
46 /bin/rm -fr demoCA newcert.pem newreq.pem
47 #usage: CA -newcert|-newreq|-newca|-sign|-verify
48