Skip to content

Instantly share code, notes, and snippets.

@stefan2904
Last active June 4, 2017 22:44
Show Gist options
  • Select an option

  • Save stefan2904/adea97ec3fec916156488787a679b6c9 to your computer and use it in GitHub Desktop.

Select an option

Save stefan2904/adea97ec3fec916156488787a679b6c9 to your computer and use it in GitHub Desktop.
Sign a DNS zone using ldns and nsd
ldns-dane create tightest.eu 443
export ZSK=`ldns-keygen -a ECDSAP256SHA256 tightest.eu`
export KSK=`ldns-keygen -k -a ECDSAP256SHA256 tightest.eu`
# ZSK=""
# KSK=""
echo "signing zone tightest.eu" ...
ldns-signzone -n -p -s $(head -n 1000 /dev/random | sha1sum | cut -b 1-16) tightest.eu.zone $ZSK $KSK
echo "reloading zone tightest.eu ..."
nsd-control reload tightest.eu
echo "done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment