summaryrefslogtreecommitdiff
path: root/regress/lib/libssl/testrsa.sh
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>1999-01-05 17:53:10 +0000
committerBob Beck <beck@cvs.openbsd.org>1999-01-05 17:53:10 +0000
commit0a0f4596b795354a803b00baa899ecb288a1e20b (patch)
treee3d6adb6c26887e4c48130352afdb2bc6f527335 /regress/lib/libssl/testrsa.sh
parent65adbf725c06baaac6bc27dd4769fae6a9e3d45c (diff)
Fix up for make regress. Should handle objdir now.
Diffstat (limited to 'regress/lib/libssl/testrsa.sh')
-rw-r--r--regress/lib/libssl/testrsa.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/lib/libssl/testrsa.sh b/regress/lib/libssl/testrsa.sh
index 79c578834a5..3f4c328acd3 100644
--- a/regress/lib/libssl/testrsa.sh
+++ b/regress/lib/libssl/testrsa.sh
@@ -11,6 +11,7 @@ echo This will *not* work with what\'s in the tree, rsa is not in that.
echo
sleep 3
+cd $1
# Generate RSA private key
ssleay genrsa -out rsakey.pem
@@ -20,7 +21,7 @@ fi
# Denerate an RSA certificate
-ssleay req -config ssleay.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem
+ssleay req -config $2/ssleay.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem
if [ $? != 0 ]; then
exit 1;
fi