mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-10 22:29:44 +08:00
not very smart...
This commit is contained in:
@@ -251,7 +251,7 @@ def generatelocalhostcert():
|
||||
cert_key = crypto.PKey()
|
||||
cert_key.generate_key(crypto.TYPE_RSA, 2048)
|
||||
|
||||
with open('server.key', 'w') as cert_key_file:
|
||||
with open('/etc/module-build-service/server.key', 'w') as cert_key_file:
|
||||
cert_key_file.write(
|
||||
crypto.dump_privatekey(crypto.FILETYPE_PEM, cert_key))
|
||||
|
||||
@@ -276,7 +276,7 @@ def generatelocalhostcert():
|
||||
cert.add_extensions(cert_extensions)
|
||||
cert.sign(cert_key, 'sha256')
|
||||
|
||||
with open('server.crt', 'w') as cert_file:
|
||||
with open('/etc/module-build-service/server.crt', 'w') as cert_file:
|
||||
cert_file.write(
|
||||
crypto.dump_certificate(crypto.FILETYPE_PEM, cert))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user