summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-04-28 02:58:43 +0200
committerJonas Smedegaard <dr@jones.dk>2016-04-28 02:58:43 +0200
commit0204f1a7e607f07e877e0e92b51be9113a2aa66e (patch)
tree1e11aaf22018c9c60a3da05eb4a30291e90522cf
parent23f1d2b9d371c69f02ca73b1b23ce9ce414b5611 (diff)
Initial letsencrypt.sh snippets.
-rw-r--r--letsencrypt.sh/conf.d/secp384r1.sh2
-rw-r--r--letsencrypt.sh/conf.d/staging.sh2
-rwxr-xr-xletsencrypt.sh/cron.weekly/local-letsencrypt.sh7
3 files changed, 11 insertions, 0 deletions
diff --git a/letsencrypt.sh/conf.d/secp384r1.sh b/letsencrypt.sh/conf.d/secp384r1.sh
new file mode 100644
index 0000000..7969796
--- /dev/null
+++ b/letsencrypt.sh/conf.d/secp384r1.sh
@@ -0,0 +1,2 @@
+# Use NIST P-384 as public key algorithm
+KEY_ALGO=secp384r1
diff --git a/letsencrypt.sh/conf.d/staging.sh b/letsencrypt.sh/conf.d/staging.sh
new file mode 100644
index 0000000..a2e050d
--- /dev/null
+++ b/letsencrypt.sh/conf.d/staging.sh
@@ -0,0 +1,2 @@
+# Use stafing service
+CA="https://acme-staging.api.letsencrypt.org/directory"
diff --git a/letsencrypt.sh/cron.weekly/local-letsencrypt.sh b/letsencrypt.sh/cron.weekly/local-letsencrypt.sh
new file mode 100755
index 0000000..0c84001
--- /dev/null
+++ b/letsencrypt.sh/cron.weekly/local-letsencrypt.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# Renew letsencrypt certificates
+
+set -e
+
+letsencrypt.sh --cron