summaryrefslogtreecommitdiff
path: root/src/lib/libssl/test/testgen
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/test/testgen')
-rw-r--r--src/lib/libssl/test/testgen16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/libssl/test/testgen b/src/lib/libssl/test/testgen
index 12a4ca4cea..6a4b6b9221 100644
--- a/src/lib/libssl/test/testgen
+++ b/src/lib/libssl/test/testgen
@@ -11,17 +11,25 @@ export PATH
11 11
12echo "generating certificate request" 12echo "generating certificate request"
13 13
14echo "There should be a 2 sequences of .'s and some +'s." 14echo "string to make the random number generator think it has entropy" >> ./.rnd
15echo "There should not be more that at most 80 per line" 15
16if ../apps/openssl no-rsa; then
17 req_new='-newkey dsa:../apps/dsa512.pem'
18else
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"
22fi
23
16echo "This could take some time." 24echo "This could take some time."
17 25
18../apps/ssleay req -config test.cnf -new -out testreq.pem 26../apps/openssl req -config test.cnf $req_new -out testreq.pem
19if [ $? != 0 ]; then 27if [ $? != 0 ]; then
20echo problems creating request 28echo problems creating request
21exit 1 29exit 1
22fi 30fi
23 31
24../apps/ssleay req -verify -in testreq.pem -noout 32../apps/openssl req -config test.cnf -verify -in testreq.pem -noout
25if [ $? != 0 ]; then 33if [ $? != 0 ]; then
26echo signature on req is wrong 34echo signature on req is wrong
27exit 1 35exit 1