summaryrefslogtreecommitdiffstats
path: root/apps/CA.sh
diff options
context:
space:
mode:
Diffstat (limited to 'apps/CA.sh')
-rw-r--r--apps/CA.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/CA.sh b/apps/CA.sh
index e63a2267ee..46e86bf94b 100644
--- a/apps/CA.sh
+++ b/apps/CA.sh
@@ -30,12 +30,14 @@
# default openssl.cnf file has setup as per the following
# demoCA ... where everything is stored
+if [ -z "$OPENSSL" ]; then OPENSSL=openssl; fi
+
DAYS="-days 365" # 1 year
CADAYS="-days 1095" # 3 years
-REQ="openssl req $SSLEAY_CONFIG"
-CA="openssl ca $SSLEAY_CONFIG"
-VERIFY="openssl verify"
-X509="openssl x509"
+REQ="$OPENSSL req $SSLEAY_CONFIG"
+CA="$OPENSSL ca $SSLEAY_CONFIG"
+VERIFY="$OPENSSL verify"
+X509="$OPENSSL x509"
CATOP=./demoCA
CAKEY=./cakey.pem