From 2fe2e3c32178824afcb8df04d98821c9e684d2b7 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 24 Jan 2019 16:09:34 +0100 Subject: Add generation of DKIM key script for sigexec.com Signed-off-by: Olivier Gayot --- sigexec.com-gen-dkim-key.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 sigexec.com-gen-dkim-key.sh (limited to 'sigexec.com-gen-dkim-key.sh') diff --git a/sigexec.com-gen-dkim-key.sh b/sigexec.com-gen-dkim-key.sh new file mode 100755 index 0000000..d9aa9e1 --- /dev/null +++ b/sigexec.com-gen-dkim-key.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ $# -lt 1 ]; then + >&2 echo "Usage: $0 selector" + exit 1 +fi + +selector=$1 + +mkdir --parents /etc/dkimkeys/sigexec.com/ +opendkim-genkey \ + -D /etc/dkimkeys/sigexec.com/ \ + -d sigexec.com \ + -s "$selector" \ + -r -- cgit v1.2.3