Fix names of cert stack functions.
[openssl.git] / test / testgen
1 #!/bin/sh
2
3 T=testcert
4 KEY=512
5 CA=../certs/testca.pem
6
7 /bin/rm -f $T.1 $T.2 $T.key
8
9 PATH=../apps:$PATH;
10 export PATH
11
12 echo "generating certificate request"
13
14 echo "There should be a 2 sequences of .'s and some +'s."
15 echo "There should not be more that at most 80 per line"
16 echo "This could take some time."
17
18 ../apps/openssl req -config test.cnf -new -out testreq.pem
19 if [ $? != 0 ]; then
20 echo problems creating request
21 exit 1
22 fi
23
24 ../apps/openssl req -verify -in testreq.pem -noout
25 if [ $? != 0 ]; then
26 echo signature on req is wrong
27 exit 1
28 fi
29
30 exit 0