mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-08 05:08:45 +08:00
change security bits for cert_key_file
This commit is contained in:
@@ -252,6 +252,7 @@ def generatelocalhostcert():
|
||||
cert_key.generate_key(crypto.TYPE_RSA, 2048)
|
||||
|
||||
with open('/etc/module-build-service/server.key', 'w') as cert_key_file:
|
||||
os.chmod(cert_key_file, 0o600)
|
||||
cert_key_file.write(
|
||||
crypto.dump_privatekey(crypto.FILETYPE_PEM, cert_key))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user