Like MD_Init, MD now must include a NULL engine pointer in its definition.
[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 "string to make the random number generator think it has entropy" >> ./.rnd
15
16 if ../apps/openssl no-rsa; then
17   req_new='-newkey dsa:../apps/dsa512.pem'
18 else
19   req_new='-new'
20   echo "There should be a 2 sequences of .'s and some +'s."
21   echo "There should not be more that at most 80 per line"
22 fi
23
24 echo "This could take some time."
25
26 ../apps/openssl req -config test.cnf $req_new -out testreq.pem
27 if [ $? != 0 ]; then
28 echo problems creating request
29 exit 1
30 fi
31
32 ../apps/openssl req -config test.cnf -verify -in testreq.pem -noout
33 if [ $? != 0 ]; then
34 echo signature on req is wrong
35 exit 1
36 fi
37
38 exit 0