summaryrefslogtreecommitdiff
path: root/src/lib/libssl/test/testgen
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2002-09-26 11:41:23 +0000
committercvs2svn <admin@example.com>2002-09-26 11:41:23 +0000
commit3b5c5bfc7cdfc65c13061b8267f92cfc3c3d9f62 (patch)
tree65b4d250c712e6725dca113b306ae73f896475e1 /src/lib/libssl/test/testgen
parentaf61e3f7dbe1fd8b363339d8ec5d6aec5f400ce3 (diff)
downloadopenbsd-OPENBSD_3_2_BASE.tar.gz
openbsd-OPENBSD_3_2_BASE.tar.bz2
openbsd-OPENBSD_3_2_BASE.zip
This commit was manufactured by cvs2git to create tag 'OPENBSD_3_2_BASE'.OPENBSD_3_2_BASE
Diffstat (limited to 'src/lib/libssl/test/testgen')
-rw-r--r--src/lib/libssl/test/testgen42
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
3T=testcert
4KEY=512
5CA=../certs/testca.pem
6
7/bin/rm -f $T.1 $T.2 $T.key
8
9if test "$OSTYPE" = msdosdjgpp; then
10 PATH=../apps\;$PATH;
11else
12 PATH=../apps:$PATH;
13fi
14export PATH
15
16echo "generating certificate request"
17
18echo "string to make the random number generator think it has entropy" >> ./.rnd
19
20if ../apps/openssl no-rsa; then
21 req_new='-newkey dsa:../apps/dsa512.pem'
22else
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"
26fi
27
28echo "This could take some time."
29
30../apps/openssl req -config test.cnf $req_new -out testreq.pem
31if [ $? != 0 ]; then
32echo problems creating request
33exit 1
34fi
35
36../apps/openssl req -config test.cnf -verify -in testreq.pem -noout
37if [ $? != 0 ]; then
38echo signature on req is wrong
39exit 1
40fi
41
42exit 0