summaryrefslogtreecommitdiff
path: root/src/lib/libssl/test/testgen
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2004-09-07 13:47:08 +0000
committercvs2svn <admin@example.com>2004-09-07 13:47:08 +0000
commit86583d7d10a19466b6f2bf9f08e4c59ef07f4150 (patch)
tree850a19943ffe1bd75f9cb9d4d9e3de4e6c570fcf /src/lib/libssl/test/testgen
parent25b7af03e5890e88d0ac4e079de8ca2057ff93d3 (diff)
downloadopenbsd-OPENBSD_3_6_BASE.tar.gz
openbsd-OPENBSD_3_6_BASE.tar.bz2
openbsd-OPENBSD_3_6_BASE.zip
This commit was manufactured by cvs2git to create tag 'OPENBSD_3_6_BASE'.OPENBSD_3_6_BASE
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/test/testgen44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/lib/libssl/test/testgen b/src/lib/libssl/test/testgen
deleted file mode 100644
index 3798543e04..0000000000
--- a/src/lib/libssl/test/testgen
+++ /dev/null
@@ -1,44 +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
30rm -f testkey.pem testreq.pem
31
32../apps/openssl req -config test.cnf $req_new -out testreq.pem
33if [ $? != 0 ]; then
34echo problems creating request
35exit 1
36fi
37
38../apps/openssl req -config test.cnf -verify -in testreq.pem -noout
39if [ $? != 0 ]; then
40echo signature on req is wrong
41exit 1
42fi
43
44exit 0