identity: sane chmod for cert and key files
This commit is contained in:
parent
d6057281bd
commit
23b461aa45
|
@ -109,6 +109,9 @@ def create_certificate(url: str, common_name: str, gen_command: list):
|
||||||
except subprocess.CalledProcessError as exc:
|
except subprocess.CalledProcessError as exc:
|
||||||
error = "Could not create certificate: " + str(exc)
|
error = "Could not create certificate: " + str(exc)
|
||||||
raise ClientCertificateException(error)
|
raise ClientCertificateException(error)
|
||||||
|
|
||||||
|
cert_path.chmod(0o644)
|
||||||
|
key_path.chmod(0o600)
|
||||||
return mangled_name
|
return mangled_name
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue