Fix generation of expired CA certificate.
[openssl.git] / test / certs / mkcert.sh
index 39e3a1e28c3f6c7c382f0d13c82b28a9a9b48185..ced08ea091b422156e92f1ef676ced9ad8178c3f 100755 (executable)
@@ -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