#!/usr/bin/bash # First, generate DNSSEC keys with timers set to simulate 2017 KSK roll-over. # Second, fake system time to pretend that we are at the beginning on time slots # used during 2017 and sign our fake root zone. # Depends on libfaketime + dnssec-keygen and dnssec-signzone from BIND 9.11. # Output: Bunch of DNSSEC keys + several versions of signed root zone. set -o nounset -o errexit -o xtrace GEN="dnssec-keygen -K keys/ -a RSASHA256 -b 2048 -L 21d" function usage { echo -e "Usage: $0