blob: 3dae4864c9eb06b331e295f5c33e2268f96e96ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# Debian uses the /etc/dkimkeys/ directory but the upstream recommends using
# /var/db/dkim/.
key_directory=/etc/dkimkeys/sigexec.com/
if [ $# -lt 1 ]; then
>&2 echo "Usage: $0 selector"
exit 1
fi
selector=$1
mkdir --parents -- "${key_directory}"
opendkim-genkey \
-D "${key_directory}" \
-d sigexec.com \
-s "$selector" \
-r
|