From c2065f0a7222f9d00111e4ed47a35b3b15d2f33f Mon Sep 17 00:00:00 2001 From: opi Date: Sun, 4 Dec 2016 15:32:34 +0100 Subject: [PATCH] [fix] Improve dnssec key generation on low entropy devices See https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/963368 --- src/yunohost/dyndns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/dyndns.py b/src/yunohost/dyndns.py index 878bc577e..b32cde0da 100644 --- a/src/yunohost/dyndns.py +++ b/src/yunohost/dyndns.py @@ -95,7 +95,7 @@ def dyndns_subscribe(subscribe_host="dyndns.yunohost.org", domain=None, key=None logger.info(m18n.n('dyndns_key_generating')) os.system('cd /etc/yunohost/dyndns && ' \ - 'dnssec-keygen -a hmac-md5 -b 128 -n USER %s' % domain) + 'dnssec-keygen -a hmac-md5 -b 128 -r /dev/urandom -n USER %s' % domain) os.system('chmod 600 /etc/yunohost/dyndns/*.key /etc/yunohost/dyndns/*.private') key_file = glob.glob('/etc/yunohost/dyndns/*.key')[0]