From a64b48376698841f62eb75645cf76e9633bf6dd0 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 5 Jun 2015 12:37:02 +0200 Subject: chmod 600 webkey-$node.pem --- mklog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mklog.py b/mklog.py index 8c7f89a..eb0f2bc 100755 --- a/mklog.py +++ b/mklog.py @@ -104,6 +104,8 @@ def make_certs(logname, nodenames): shutil.copy(ca_cert, '../nodes/%s/cacert.pem' % nodename) shutil.copy(cert, '../nodes/%s/webcert-%s.pem' % (nodename, nodename)) shutil.copy(key, '../nodes/%s/webkey-%s.pem' % (nodename, nodename)) + os.chmod('../nodes/%s/webkey-%s.pem' % (nodename, nodename), + stat.S_IRUSR | stat.S_IWUSR) os.chdir('..') return True -- cgit v1.1