summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/testdsa.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libssl/testdsa.sh')
-rw-r--r--src/regress/lib/libssl/testdsa.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libssl/testdsa.sh b/src/regress/lib/libssl/testdsa.sh
index dc5d7b97b5..e3afbfe40c 100644
--- a/src/regress/lib/libssl/testdsa.sh
+++ b/src/regress/lib/libssl/testdsa.sh
@@ -1,25 +1,25 @@
1#!/bin/sh 1#!/bin/sh
2 2
3#Test DSA certificate generation of ssleay 3#Test DSA certificate generation of openssl
4 4
5cd $1 5cd $1
6 6
7# Generate DSA paramter set 7# Generate DSA paramter set
8ssleay dsaparam 512 -out dsa512.pem 8openssl dsaparam 512 -out dsa512.pem
9if [ $? != 0 ]; then 9if [ $? != 0 ]; then
10 exit 1; 10 exit 1;
11fi 11fi
12 12
13 13
14# Denerate a DSA certificate 14# Denerate a DSA certificate
15ssleay req -config $2/ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key 15openssl req -config $2/openssl.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key
16if [ $? != 0 ]; then 16if [ $? != 0 ]; then
17 exit 1; 17 exit 1;
18fi 18fi
19 19
20 20
21# Now check the certificate 21# Now check the certificate
22ssleay x509 -text -in testdsa.pem 22openssl x509 -text -in testdsa.pem
23if [ $? != 0 ]; then 23if [ $? != 0 ]; then
24 exit 1; 24 exit 1;
25fi 25fi