Commit c7e870f9 authored by aoh's avatar aoh
Browse files

Full path to dnssec-keygen


Signed-off-by: aoh's avataraoh <aoh@lysator.liu.se>
parent 89121271
......@@ -9,7 +9,7 @@ class dnssec_keygen():
def __exit__(self, type, value, traceback):
pass
def create_keys(self, fqdn):
command = 'dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -K /tmp/ -n HOST'
command = '/usr/local/sbin/dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -K /tmp/ -n HOST'
args = command.split(' ')
args += [fqdn]
with subprocess.Popen(args, stdout=subprocess.PIPE) as proc:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment