summary refs log tree commit diff
path: root/old
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2022-12-15 11:11:44 -0600
committerStarfall <us@starfall.systems>2022-12-15 11:11:44 -0600
commit8985c5e9269308b75600e785147c196562fefe3f (patch)
tree5e14d1d1354d4b73fc5ccded04867f3f5e88d9ee /old
parent8cb1a370f9f99976ccacfa69cb95367879f072c4 (diff)
acme-renew: helper script for acme.sh
Diffstat (limited to 'old')
-rwxr-xr-xold/acme-renew21
1 files changed, 21 insertions, 0 deletions
diff --git a/old/acme-renew b/old/acme-renew
new file mode 100755
index 0000000..12772e2
--- /dev/null
+++ b/old/acme-renew
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+# For use with acme.sh <https://github.com/acmesh-official/acme.sh> dns-01 verification, on linode, with nginx
+# This is somewhat more reliable than the cron job that acme.sh attempts to create, but not by much.
+# We have since switched to dehydrated <https://github.com/dehydrated-io/dehydrated> http-01 challenges
+# which is much more reliable at actually renewing certs.
+acme_home=/srv/plural.cafe/.acme.sh
+domain=$1
+
+$acme_home/acme.sh --issue --force --debug 2 \
+	-d "$domain" \
+	-d "*.$domain" \
+	--cert-home $acme_home \
+	--server letsencrypt \
+	--preferred-chain dst \
+	-k 4096 \
+	--dns dns_linode_v4 \
+	--dnssleep 90 \
+	> "$HOME/$domain.acme.log"
+
+nginx -s reload