identity: sane chmod for cert and key files

This commit is contained in:
dece 2021-06-01 18:42:52 +02:00
parent d6057281bd
commit 23b461aa45

View file

@ -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