summaryrefslogtreecommitdiffstats
path: root/certs/dkim/README
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2018-12-03 23:13:04 +0100
committerGuilhem Moulin <guilhem@fripost.org>2018-12-04 01:14:45 +0100
commitc21b92d9b79a80a27607618666b56fbc5cd26ac8 (patch)
tree264c8800eac3d6aeac734bbf43fdde40a16781ff /certs/dkim/README
parent50d5b3827eb9e342e499c053f330ac0bcfe424fa (diff)
Upgrade DKIM keys to rsa2048, and allow for multiple keys.
Diffstat (limited to 'certs/dkim/README')
-rw-r--r--certs/dkim/README11
1 files changed, 11 insertions, 0 deletions
diff --git a/certs/dkim/README b/certs/dkim/README
new file mode 100644
index 0000000..e5addf9
--- /dev/null
+++ b/certs/dkim/README
@@ -0,0 +1,11 @@
+To convert a PEM-encoded public key to a TXT record, run
+
+ $ SELECTOR="8f00fb94ec6c37aacb48bd43e073f9b7"
+ $ DOMAIN="fripost.org"
+ $ printf "%s._domainkey%s IN TXT (\n" "$SELECTOR" "${DOMAIN:+.$DOMAIN.}"; \
+ { printf "v=DKIM1; k=rsa; t=s; s=email; p=";
+ sed '/^--.*--$/d' <"./certs/dkim/$SELECTOR.pub" | tr -d '\n';
+ } | fold -w64 | sed 's/.*/ "&"/; $s/$/ )\n/'
+
+Remove the "t=s" tag if subdomaining or third-party signature (hosted
+domain) is required, cf. RFC 6376 sec. 3.6.1.