diff options
| author | cvs2svn <admin@example.com> | 2003-03-22 08:02:04 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2003-03-22 08:02:04 +0000 |
| commit | df32a1286ae06981a79e30b678165a784696be4b (patch) | |
| tree | 3d70e9a28e2db2eee8cd542ce0ce859502668178 /src/lib/libssl/test/testgen | |
| parent | 2850ebd15c3cfddf6fb7edcd08cb6b2c6f717be9 (diff) | |
| download | openbsd-OPENBSD_3_3_BASE.tar.gz openbsd-OPENBSD_3_3_BASE.tar.bz2 openbsd-OPENBSD_3_3_BASE.zip | |
This commit was manufactured by cvs2git to create tag 'OPENBSD_3_3_BASE'.OPENBSD_3_3_BASE
Diffstat (limited to 'src/lib/libssl/test/testgen')
| -rw-r--r-- | src/lib/libssl/test/testgen | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/lib/libssl/test/testgen b/src/lib/libssl/test/testgen deleted file mode 100644 index 55c496f4bc..0000000000 --- a/src/lib/libssl/test/testgen +++ /dev/null | |||
| @@ -1,42 +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 | if test "$OSTYPE" = msdosdjgpp; then | ||
| 10 | PATH=../apps\;$PATH; | ||
| 11 | else | ||
| 12 | PATH=../apps:$PATH; | ||
| 13 | fi | ||
| 14 | export PATH | ||
| 15 | |||
| 16 | echo "generating certificate request" | ||
| 17 | |||
| 18 | echo "string to make the random number generator think it has entropy" >> ./.rnd | ||
| 19 | |||
| 20 | if ../apps/openssl no-rsa; then | ||
| 21 | req_new='-newkey dsa:../apps/dsa512.pem' | ||
| 22 | else | ||
| 23 | req_new='-new' | ||
| 24 | echo "There should be a 2 sequences of .'s and some +'s." | ||
| 25 | echo "There should not be more that at most 80 per line" | ||
| 26 | fi | ||
| 27 | |||
| 28 | echo "This could take some time." | ||
| 29 | |||
| 30 | ../apps/openssl req -config test.cnf $req_new -out testreq.pem | ||
| 31 | if [ $? != 0 ]; then | ||
| 32 | echo problems creating request | ||
| 33 | exit 1 | ||
| 34 | fi | ||
| 35 | |||
| 36 | ../apps/openssl req -config test.cnf -verify -in testreq.pem -noout | ||
| 37 | if [ $? != 0 ]; then | ||
| 38 | echo signature on req is wrong | ||
| 39 | exit 1 | ||
| 40 | fi | ||
| 41 | |||
| 42 | exit 0 | ||
