diff options
author | Bodo Möller <bodo@openssl.org> | 2000-03-13 19:24:39 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-03-13 19:24:39 +0000 |
commit | 65b002f39934a755b6db855c9f9ba722d6cef863 (patch) | |
tree | b26617a66f83a3bd399da887892a6e4af0ba3735 /test/testgen | |
parent | bc23b70e47531cabe5b3c329ba0b5d58777fbb7b (diff) |
Update test suite so that 'make test' succeeds in 'no-rsa' configuration.
Diffstat (limited to 'test/testgen')
-rw-r--r-- | test/testgen | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/testgen b/test/testgen index c5f61b582b..f2db42cb24 100644 --- a/test/testgen +++ b/test/testgen @@ -11,13 +11,19 @@ export PATH echo "generating certificate request" -echo "There should be a 2 sequences of .'s and some +'s." -echo "There should not be more that at most 80 per line" -echo "This could take some time." - echo "string to make the random number generator think it has entropy" >> ./.rnd -../apps/openssl req -config test.cnf -new -out testreq.pem +if ../apps/openssl list-standard-commands | grep '^rsa$' >/dev/null; then + req_new='-new' + echo "There should be a 2 sequences of .'s and some +'s." + echo "There should not be more that at most 80 per line" +else + req_new='-newkey dsa:../apps/dsa512.pem' +fi + +echo "This could take some time." + +../apps/openssl req -config test.cnf $req_new -out testreq.pem if [ $? != 0 ]; then echo problems creating request exit 1 |