]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Renew certificate 30 days before expiration 68/head
authorOndřej Nový <ondrej.novy@firma.seznam.cz>
Sat, 2 Jan 2016 17:31:42 +0000 (18:31 +0100)
committerOndřej Nový <ondrej.novy@firma.seznam.cz>
Sat, 2 Jan 2016 20:14:34 +0000 (21:14 +0100)
According to https://community.letsencrypt.org/t/quick-start-guide/1631
Renewals and Lifetimes:
Certificates from Let's Encrypt are valid for 90 days. We recommend
renewing them every 60 days to provide a nice margin of error.

config.sh.example
letsencrypt.sh
test.sh

index 6a6f29c3998b3fd113bd079476544b3d914c778c..55559d2ed049f20d457ba4574d085b04ba99de6c 100644 (file)
@@ -46,8 +46,8 @@
 # default: <unset>
 #HOOK=
 
-# Minimum days before expiration to automatically renew certificate (default: 14)
-#RENEW_DAYS="14"
+# Minimum days before expiration to automatically renew certificate (default: 30)
+#RENEW_DAYS="30"
 
 # Regenerate private keys instead of just signing new certificates on renewal (default: no)
 #PRIVATE_KEY_RENEW="no"
index a21d76f9f297254f6158ff53e982fcfc87b001c6..3002479338fbc50ee5ac9e817dce90d822fd611f 100755 (executable)
@@ -15,7 +15,7 @@ BASEDIR="${SCRIPTDIR}"
 CA="https://acme-v01.api.letsencrypt.org/directory"
 LICENSE="https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf"
 HOOK=
-RENEW_DAYS="14"
+RENEW_DAYS="30"
 PRIVATE_KEY=
 KEYSIZE="4096"
 WELLKNOWN=
diff --git a/test.sh b/test.sh
index c40a75fde35ad038fa4ecb7a46f8f4546f43bebf..a818148be1be4ad6442690ab5b0e61e87334f1ac 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -100,6 +100,7 @@ mkdir -p .acme-challenges/.well-known/acme-challenge
 echo 'CA="https://testca.kurz.pw/directory"' > config.sh
 echo 'LICENSE="https://testca.kurz.pw/terms/v1"' >> config.sh
 echo 'WELLKNOWN=".acme-challenges/.well-known/acme-challenge"' >> config.sh
+echo 'RENEW_DAYS="14"' >> config.sh
 touch domains.txt
 
 # Check if help command is working