Don't add write errors into bytecounts
[openssl.git] / test / testca
1 #!/bin/sh
2
3 set -e
4
5 PERL="$1"
6
7 if test "$OSTYPE" = msdosdjgpp; then
8     PATH="../apps\;$PATH"
9 else
10     PATH="../apps:$PATH"
11 fi
12 export PATH
13
14 export SSLEAY_CONFIG OPENSSL
15
16 /bin/rm -fr demoCA
17
18 SSLEAY_CONFIG="-config CAss.cnf"
19 OPENSSL="`pwd`/../util/opensslwrap.sh"
20
21 OPENSSL_CONFIG=/dev/null $PERL ../apps/CA.pl -newca </dev/null
22
23 SSLEAY_CONFIG="-config Uss.cnf"
24 $PERL ../apps/CA.pl -newreq
25
26 SSLEAY_CONFIG="-config ../apps/openssl.cnf"
27 yes | $PERL ../apps/CA.pl -sign
28
29 $PERL ../apps/CA.pl -verify newcert.pem
30
31 /bin/rm -fr demoCA newcert.pem newreq.pem