diff options
author | Linus Nordberg <linus@nordu.net> | 2015-06-05 12:37:02 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-06-05 12:37:02 +0200 |
commit | a64b48376698841f62eb75645cf76e9633bf6dd0 (patch) | |
tree | 3290e7054429ba2fd6afc5108773178c726fcf86 /mklog.py | |
parent | 5ed094822b28eb1ca871864e49f63f23d4a6cf68 (diff) |
chmod 600 webkey-$node.pem
Diffstat (limited to 'mklog.py')
-rwxr-xr-x | mklog.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |