summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2024-05-26 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2024-05-27 00:00:00 +0000
commit42804ed6fa740eca3dbc3e08e28c63b0eb0b0715bc5b6082d3306b676ff2aeb2 (patch)
treef9168dff4cd1c64f1e1ca14bd376e8d35512d8bd7e716c1e8e4727b716f48506
parent028dd86a7c8d18b30860d678657131702d3f56dd3d75066946f3d37fb6ef0067 (diff)
downloadjournal-42804ed6fa740eca3dbc3e08e28c63b0eb0b0715bc5b6082d3306b676ff2aeb2.tar.gz
journal-42804ed6fa740eca3dbc3e08e28c63b0eb0b0715bc5b6082d3306b676ff2aeb2.zip
Replace DKIM private key links with script
One less thing to update when I publish a new DKIM private.
-rw-r--r--content/about.md8
-rwxr-xr-xstatic/get-dkim-privates.sh10
2 files changed, 12 insertions, 6 deletions
diff --git a/content/about.md b/content/about.md
index d7096c9..5a80040 100644
--- a/content/about.md
+++ b/content/about.md
@@ -84,10 +84,6 @@ I also timestamped this journal so that its human provenance can be verified. Se
## Email Deniability
-I publish old DKIM private keys for better email deniability.
+I publish old DKIM private keys for better email deniability. Run the script below to retrieve them.
-[:old_key: DKIM4](/old-dkim-privates/dkim4.pem)
-[:old_key: DKIM3](/old-dkim-privates/dkim3.pem)
-[:old_key: DKIM2](/old-dkim-privates/dkim2.pem)
-[:old_key: DKIM1](/old-dkim-privates/dkim1.pem)
-[:old_key: Mail](/old-dkim-privates/mail.pem)
+[:old_key: DKIM Privates Script](/get-dkim-privates.sh)
diff --git a/static/get-dkim-privates.sh b/static/get-dkim-privates.sh
new file mode 100755
index 0000000..c99f663
--- /dev/null
+++ b/static/get-dkim-privates.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+url="https://nicholasjohnson.ch/old-dkim-privates"
+curl="curl --silent --fail -O"
+
+$curl "$url/mail.pem"
+
+i=1
+while $curl "$url/dkim$i.pem"; do
+ i=$((i+1))
+done