summaryrefslogtreecommitdiffstats
path: root/test/certs/mkcert.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/certs/mkcert.sh')
-rwxr-xr-xtest/certs/mkcert.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/certs/mkcert.sh b/test/certs/mkcert.sh
index 39e3a1e28c..ced08ea091 100755
--- a/test/certs/mkcert.sh
+++ b/test/certs/mkcert.sh
@@ -8,7 +8,9 @@
# 100 years should be enough for now
#
-DAYS=36525
+if [ -z "$DAYS" ]; then
+ DAYS=36525
+fi
if [ -z "$OPENSSL_SIGALG" ]; then
OPENSSL_SIGALG=sha256