diff options
| author | cvs2svn <admin@example.com> | 2002-03-12 00:05:45 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2002-03-12 00:05:45 +0000 |
| commit | 3779f2f4a8b544a7e4c362915322726b66cff114 (patch) | |
| tree | b6d77e66cbfdf6c0d8953fba2917f26f86fa50f6 /src/lib/libssl/test/testgen | |
| parent | f39945c2b3b0f9e4950384bdb8effdac6eed9199 (diff) | |
| download | openbsd-OPENBSD_3_1_BASE.tar.gz openbsd-OPENBSD_3_1_BASE.tar.bz2 openbsd-OPENBSD_3_1_BASE.zip | |
This commit was manufactured by cvs2git to create tag 'OPENBSD_3_1_BASE'.OPENBSD_3_1_BASE
Diffstat (limited to 'src/lib/libssl/test/testgen')
| -rw-r--r-- | src/lib/libssl/test/testgen | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/libssl/test/testgen b/src/lib/libssl/test/testgen deleted file mode 100644 index c5f61b582b..0000000000 --- a/src/lib/libssl/test/testgen +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 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 "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 | ||
| 19 | |||
| 20 | ../apps/openssl req -config test.cnf -new -out testreq.pem | ||
| 21 | if [ $? != 0 ]; then | ||
| 22 | echo problems creating request | ||
| 23 | exit 1 | ||
| 24 | fi | ||
| 25 | |||
| 26 | ../apps/openssl req -config test.cnf -verify -in testreq.pem -noout | ||
| 27 | if [ $? != 0 ]; then | ||
| 28 | echo signature on req is wrong | ||
| 29 | exit 1 | ||
| 30 | fi | ||
| 31 | |||
| 32 | exit 0 | ||
