From 42804ed6fa740eca3dbc3e08e28c63b0eb0b0715bc5b6082d3306b676ff2aeb2 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 26 May 2024 00:00:00 +0000 Subject: Replace DKIM private key links with script One less thing to update when I publish a new DKIM private. --- content/about.md | 8 ++------ static/get-dkim-privates.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100755 static/get-dkim-privates.sh 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 -- cgit v1.2.3