identity: sane chmod for cert and key files

exec
dece 3 years ago
parent d6057281bd
commit 23b461aa45

@ -109,6 +109,9 @@ def create_certificate(url: str, common_name: str, gen_command: list):
except subprocess.CalledProcessError as exc:
error = "Could not create certificate: " + str(exc)
raise ClientCertificateException(error)
cert_path.chmod(0o644)
key_path.chmod(0o600)
return mangled_name

Loading…
Cancel
Save