Skip to content

Commit

Permalink
fix nods generation (i.e. don't generate keys and ds record)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjeb committed Mar 13, 2019
1 parent 860a50b commit 648c930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/workbench/dnsutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 648c930

Please sign in to comment.