cli: Fix group ownership for authority setup

This commit is contained in:
Lauri Võsandi 2015-12-24 13:58:24 +00:00
parent 8864af6072
commit 1b50b8a371
1 changed files with 3 additions and 0 deletions

View File

@ -628,6 +628,9 @@ def certidude_setup_authority(parent, country, state, locality, organization, or
ca.sign(key, "sha256")
_, _, uid, gid, gecos, root, shell = pwd.getpwnam("certidude")
os.setegid(gid)
os.umask(0o027)
if not os.path.exists(directory):
os.makedirs(directory)