Skip to content
Permalink
Browse files

fix nods generation (i.e. don't generate keys and ds record)

  • Loading branch information...
tjeb committed Mar 13, 2019
1 parent 860a50b commit 648c93047b57fd5d823266ff68d930d05219a457
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/workbench/dnsutil.py
@@ -110,7 +110,7 @@ def get_keyfile(zone):

def check_create_key(zone, keyfile):
base_keyfile = keyfile[:-8]
if not base_keyfile.startswith("nods.") and not os.path.exists(keyfile):
if not os.path.basename(base_keyfile).startswith("nods.") and not os.path.exists(keyfile):
os.makedirs(os.path.dirname(keyfile), exist_ok=True)
cmd = "ldns-keygen -k -r /dev/urandom -a RSASHA256 -b 1024 %s" % zone
stdout = execute(cmd)

0 comments on commit 648c930

Please sign in to comment.
You can’t perform that action at this time.