]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/testca
Make message buffer slightly larger than message.
[thirdparty/openssl.git] / test / testca
CommitLineData
d02b48c6
RE
1#!/bin/sh
2
3SH="/bin/sh"
451dc18f 4if test "$OSTYPE" = msdosdjgpp; then
62d27939 5 PATH="../apps\;$PATH"
451dc18f 6else
62d27939 7 PATH="../apps:$PATH"
451dc18f 8fi
d02b48c6
RE
9export SH PATH
10
11SSLEAY_CONFIG="-config CAss.cnf"
12export SSLEAY_CONFIG
13
62d27939
AP
14OPENSSL="`pwd`/../util/opensslwrap.sh"
15export OPENSSL
16
d02b48c6
RE
17/bin/rm -fr demoCA
18$SH ../apps/CA.sh -newca <<EOF
19EOF
20
21if [ $? != 0 ]; then
22 exit 1;
23fi
24
25SSLEAY_CONFIG="-config Uss.cnf"
26export SSLEAY_CONFIG
27$SH ../apps/CA.sh -newreq
28if [ $? != 0 ]; then
29 exit 1;
30fi
31
32
288370ea 33SSLEAY_CONFIG="-config ../apps/openssl.cnf"
d02b48c6
RE
34export SSLEAY_CONFIG
35$SH ../apps/CA.sh -sign <<EOF
36y
37y
38EOF
39if [ $? != 0 ]; then
40 exit 1;
41fi
42
43
44$SH ../apps/CA.sh -verify newcert.pem
45if [ $? != 0 ]; then
46 exit 1;
47fi
48
49/bin/rm -fr demoCA newcert.pem newreq.pem
50#usage: CA -newcert|-newreq|-newca|-sign|-verify
51