diff options
Diffstat (limited to 'src/lib/libssl/test/testgen')
| -rw-r--r-- | src/lib/libssl/test/testgen | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/lib/libssl/test/testgen b/src/lib/libssl/test/testgen index c5f61b582b..6a4b6b9221 100644 --- a/src/lib/libssl/test/testgen +++ b/src/lib/libssl/test/testgen | |||
| @@ -11,13 +11,19 @@ export PATH | |||
| 11 | 11 | ||
| 12 | echo "generating certificate request" | 12 | echo "generating certificate request" |
| 13 | 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 | echo "string to make the random number generator think it has entropy" >> ./.rnd | 14 | echo "string to make the random number generator think it has entropy" >> ./.rnd |
| 19 | 15 | ||
| 20 | ../apps/openssl req -config test.cnf -new -out testreq.pem | 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 | ||
| 21 | if [ $? != 0 ]; then | 27 | if [ $? != 0 ]; then |
| 22 | echo problems creating request | 28 | echo problems creating request |
| 23 | exit 1 | 29 | exit 1 |
