diff options
author | cvs2svn <admin@example.com> | 1999-03-26 18:24:03 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 1999-03-26 18:24:03 +0000 |
commit | 3fc228fb4c1a39aceaee3d7013365042a6077bd0 (patch) | |
tree | af769f6648929b3b2c1f9e053a3754fa989ce302 /src/regress/lib/libssl/testdsa.sh | |
parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
download | openbsd-OPENBSD_2_5.tar.gz openbsd-OPENBSD_2_5.tar.bz2 openbsd-OPENBSD_2_5.zip |
This commit was manufactured by cvs2git to create branch 'OPENBSD_2_5'.OPENBSD_2_5
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libssl/testdsa.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/regress/lib/libssl/testdsa.sh b/src/regress/lib/libssl/testdsa.sh new file mode 100644 index 0000000000..dc5d7b97b5 --- /dev/null +++ b/src/regress/lib/libssl/testdsa.sh | |||
@@ -0,0 +1,27 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | #Test DSA certificate generation of ssleay | ||
4 | |||
5 | cd $1 | ||
6 | |||
7 | # Generate DSA paramter set | ||
8 | ssleay dsaparam 512 -out dsa512.pem | ||
9 | if [ $? != 0 ]; then | ||
10 | exit 1; | ||
11 | fi | ||
12 | |||
13 | |||
14 | # Denerate a DSA certificate | ||
15 | ssleay req -config $2/ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key | ||
16 | if [ $? != 0 ]; then | ||
17 | exit 1; | ||
18 | fi | ||
19 | |||
20 | |||
21 | # Now check the certificate | ||
22 | ssleay x509 -text -in testdsa.pem | ||
23 | if [ $? != 0 ]; then | ||
24 | exit 1; | ||
25 | fi | ||
26 | |||
27 | exit 0 | ||