summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/testdsa.sh
diff options
context:
space:
mode:
authorbeck <>1999-01-04 07:59:58 +0000
committerbeck <>1999-01-04 07:59:58 +0000
commit2ab850a424d07c3f877cbfc628f24480be0e7bac (patch)
tree390ed99e97618ae9ee2bf82a32afe655e6a80caa /src/regress/lib/libssl/testdsa.sh
parent6dc7513a633fd54f42172958ea7fc81510efc8dd (diff)
downloadopenbsd-2ab850a424d07c3f877cbfc628f24480be0e7bac.tar.gz
openbsd-2ab850a424d07c3f877cbfc628f24480be0e7bac.tar.bz2
openbsd-2ab850a424d07c3f877cbfc628f24480be0e7bac.zip
ssl lib test scripts. Need to be tested so as not to break build process
before this libssl dir is added to the upper level Makefile.
Diffstat (limited to 'src/regress/lib/libssl/testdsa.sh')
-rw-r--r--src/regress/lib/libssl/testdsa.sh25
1 files changed, 25 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..4c9668c906
--- /dev/null
+++ b/src/regress/lib/libssl/testdsa.sh
@@ -0,0 +1,25 @@
1#!/bin/sh
2
3#Test DSA certificate generation of ssleay
4
5# Generate DSA paramter set
6ssleay dsaparam 512 -out dsa512.pem
7if [ $? != 0 ]; then
8 exit 1;
9fi
10
11
12# Denerate a DSA certificate
13ssleay req -config ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key
14if [ $? != 0 ]; then
15 exit 1;
16fi
17
18
19# Now check the certificate
20ssleay x509 -text -in testdsa.pem
21if [ $? != 0 ]; then
22 exit 1;
23fi
24
25exit 0