aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-04 11:59:55 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-04 11:59:55 +0100
commit927f3abdc469775f666e5778edfa9693663b4871 (patch)
tree8903207d55c320707214d380103641539a22dd8a
parentf23b3c48058514cd1bbf1c240386790fc7df3c79 (diff)
downloadlfacme-927f3abdc469775f666e5778edfa9693663b4871.tar.gz
lfacme-927f3abdc469775f666e5778edfa9693663b4871.tar.bz2
lfacme-renew: add -f option
-rw-r--r--lfacme-renew.8.in4
-rw-r--r--lfacme-renew.sh.in5
2 files changed, 7 insertions, 2 deletions
diff --git a/lfacme-renew.8.in b/lfacme-renew.8.in
index 66d9f3d..6e4ebd9 100644
--- a/lfacme-renew.8.in
+++ b/lfacme-renew.8.in
@@ -7,7 +7,7 @@
.Nd issue or renew ACME certificates
.Sh SYNOPSIS
.Nm
-.Op Fl v
+.Op Fl fv
.Op Fl c Ar confdir
.Sh DESCRIPTION
The
@@ -31,6 +31,8 @@ Use
.Ar confdir
as the configuration directory instead of the default
.Pa __CONFDIR__ .
+.It Fl f
+Force renewal of certificates, even if they're not going to expire soon.
.It Fl v
Produce more output when running.
This also passes the
diff --git a/lfacme-renew.sh.in b/lfacme-renew.sh.in
index 5b471c7..34d2c01 100644
--- a/lfacme-renew.sh.in
+++ b/lfacme-renew.sh.in
@@ -2,7 +2,7 @@
# This source code is released into the public domain.
# Parse command-line arguments.
-args=$(getopt c:v $*)
+args=$(getopt c:fv $*)
if [ $? -ne 0 ]; then
exit 1
fi
@@ -16,6 +16,9 @@ while :; do
-c)
_CONFDIR="$2"
shift; shift;;
+ -f)
+ _uacme_flags="$_uacme_flags -f"
+ shift;;
-v)
LFACME_VERBOSE=1
shift;;