diff options
| author | markus <> | 2002-09-05 12:51:50 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 12:51:50 +0000 |
| commit | 15b5d84f9da2ce4bfae8580e56e34a859f74ad71 (patch) | |
| tree | bf939e82d7fd73cc8a01cf6959002209972091bc /src/lib/libssl/test/testgen | |
| parent | 027351f729b9e837200dae6e1520cda6577ab930 (diff) | |
| download | openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.gz openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.bz2 openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.zip | |
import openssl-0.9.7-beta1
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/test/testgen | 16 |
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 | ||
| 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." | 14 | echo "string to make the random number generator think it has entropy" >> ./.rnd |
| 15 | echo "There should not be more that at most 80 per line" | 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 | |||
| 16 | echo "This could take some time." | 24 | echo "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 |
| 19 | if [ $? != 0 ]; then | 27 | if [ $? != 0 ]; then |
| 20 | echo problems creating request | 28 | echo problems creating request |
| 21 | exit 1 | 29 | exit 1 |
| 22 | fi | 30 | fi |
| 23 | 31 | ||
| 24 | ../apps/ssleay req -verify -in testreq.pem -noout | 32 | ../apps/openssl req -config test.cnf -verify -in testreq.pem -noout |
| 25 | if [ $? != 0 ]; then | 33 | if [ $? != 0 ]; then |
| 26 | echo signature on req is wrong | 34 | echo signature on req is wrong |
| 27 | exit 1 | 35 | exit 1 |
