Commit 71a4b55c4c for openssl.org
commit 71a4b55c4c04e03eaef59af497c76c768c523c8a
Author: Dr. David von Oheimb <dev@ddvo.net>
Date: Fri Jun 19 10:06:08 2026 +0200
test/certs/mkcert.sh: fix default DAYS to be really 100 years (not one day more than that)
Reviewed-by: Mounir Idrassi <mounir.idrassi@idrix.fr>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
MergeDate: Thu Sep 10 13:24:40 2026
(Merged from https://github.com/openssl/openssl/pull/31611)
diff --git a/test/certs/mkcert.sh b/test/certs/mkcert.sh
index 1749ca698a..e0a85fdb66 100755
--- a/test/certs/mkcert.sh
+++ b/test/certs/mkcert.sh
@@ -14,7 +14,7 @@
# 100 years should be enough for now
if [ -z "$DAYS" ]; then
- DAYS=36525
+ DAYS=36524 # there are 24 leap years per 100 years
fi
if [ -z "$OPENSSL_SIGALG" ]; then