]> purplebirdman git - web-certificates.git/commitdiff
Broke out scripts to more easily access certbot master
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Thu, 21 Aug 2025 18:11:55 +0000 (13:11 -0500)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Thu, 21 Aug 2025 18:11:55 +0000 (13:11 -0500)
docker-run-certbot.sh [new file with mode: 0755]
fetch-certificates.sh
show-certificates.sh [new file with mode: 0755]

diff --git a/docker-run-certbot.sh b/docker-run-certbot.sh
new file mode 100755 (executable)
index 0000000..90aea9d
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+# source: https://eff-certbot.readthedocs.io/en/latest/install.html#alternative-1-docker
+
+# make sure the local image is always up to date
+docker image pull certbot/dns-route53
+
+# run local instance only long enough to collect the certificate
+docker run --rm --name certbot \
+    -v "/etc/letsencrypt:/etc/letsencrypt" \
+    -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
+    -v "$HOME/.aws:/aws" \
+    -e "AWS_CONFIG_FILE=/aws/config" \
+    -e "AWS_SHARED_CREDENTIALS_FILE=/aws/credentials" \
+    -p 80:80 \
+    certbot/dns-route53 "$@"
index 887c665c55d10f41e940ab94193691e4efe536b0..8c1b91ffffa17ef62558ae65176fd0277e5f6fcd 100755 (executable)
@@ -1,16 +1,5 @@
 #!/bin/bash
 #!/bin/bash
-# source: https://eff-certbot.readthedocs.io/en/latest/install.html#alternative-1-docker
 
 
-# make sure the local image is always up to date
-docker image pull certbot/dns-route53
-
-# run local instance only long enough to collect the certificate
-docker run --rm --name certbot \
-            -v "/etc/letsencrypt:/etc/letsencrypt" \
-            -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
-            -v "$HOME/.aws:/aws" \
-            -e "AWS_CONFIG_FILE=/aws/config" \
-            -e "AWS_SHARED_CREDENTIALS_FILE=/aws/credentials" \
-            -p 80:80 \
-            certbot/dns-route53 certonly -n \
-            --dns-route53 -v -d 'purplebirdman.com,*.purplebirdman.com'
+./docker-run-certbot.sh \
+    certonly -n \
+    --dns-route53 -v -d 'purplebirdman.com,*.purplebirdman.com'
diff --git a/show-certificates.sh b/show-certificates.sh
new file mode 100755 (executable)
index 0000000..8b396f6
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+./docker-run-certbot.sh \
+    -n \
+    certificates