diff options
Diffstat (limited to 'src/regress/lib/libssl/testdsa.sh')
-rw-r--r-- | src/regress/lib/libssl/testdsa.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/testdsa.sh b/src/regress/lib/libssl/testdsa.sh index 4c9668c906..dc5d7b97b5 100644 --- a/src/regress/lib/libssl/testdsa.sh +++ b/src/regress/lib/libssl/testdsa.sh | |||
@@ -2,6 +2,8 @@ | |||
2 | 2 | ||
3 | #Test DSA certificate generation of ssleay | 3 | #Test DSA certificate generation of ssleay |
4 | 4 | ||
5 | cd $1 | ||
6 | |||
5 | # Generate DSA paramter set | 7 | # Generate DSA paramter set |
6 | ssleay dsaparam 512 -out dsa512.pem | 8 | ssleay dsaparam 512 -out dsa512.pem |
7 | if [ $? != 0 ]; then | 9 | if [ $? != 0 ]; then |
@@ -10,7 +12,7 @@ fi | |||
10 | 12 | ||
11 | 13 | ||
12 | # Denerate a DSA certificate | 14 | # Denerate a DSA certificate |
13 | ssleay req -config ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key | 15 | ssleay req -config $2/ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key |
14 | if [ $? != 0 ]; then | 16 | if [ $? != 0 ]; then |
15 | exit 1; | 17 | exit 1; |
16 | fi | 18 | fi |