blob: c63102848cd6fb14ff40ce2445dff6570e1f039a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/rc -e
# This script utilizes lscert and rmcert to
# remove all but the most recent selector
# Despite other scripts supporting arbitrary selectors,
# this script enforces a # YYYYMMDD format for selectors.
# Check format
for (s in `{dkim/lscert}) {
echo $s | grep -E '^[0-9]{8}$' >/dev/null
}
old = `{dkim/lscert | sort -r | tail -n +2}
for (s in $old) {
echo RMCERT $s
dkim/rmcert $s
}
|