summaryrefslogtreecommitdiff
path: root/mklog.py
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-06-05 12:37:02 +0200
committerLinus Nordberg <linus@nordu.net>2015-06-05 12:37:02 +0200
commita64b48376698841f62eb75645cf76e9633bf6dd0 (patch)
tree3290e7054429ba2fd6afc5108773178c726fcf86 /mklog.py
parent5ed094822b28eb1ca871864e49f63f23d4a6cf68 (diff)
chmod 600 webkey-$node.pem
Diffstat (limited to 'mklog.py')
-rwxr-xr-xmklog.py2
1 files changed, 2 insertions, 0 deletions
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