mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add _cert_exists to check if certificate is already generated
This commit is contained in:
parent
5efd72a9d7
commit
74dced9b00
1 changed files with 3 additions and 0 deletions
|
@ -627,6 +627,9 @@ def _prepare_certificate_signing_request(domain, key_file, output_folder):
|
||||||
with open(csr_file, "wb") as f:
|
with open(csr_file, "wb") as f:
|
||||||
f.write(crypto.dump_certificate_request(crypto.FILETYPE_PEM, csr))
|
f.write(crypto.dump_certificate_request(crypto.FILETYPE_PEM, csr))
|
||||||
|
|
||||||
|
def _cert_exists(domain): bool
|
||||||
|
cert_file = os.path.join(CERT_FOLDER, domain, "crt.pem")
|
||||||
|
return os.path.isfile(cert_file)
|
||||||
|
|
||||||
def _get_status(domain):
|
def _get_status(domain):
|
||||||
cert_file = os.path.join(CERT_FOLDER, domain, "crt.pem")
|
cert_file = os.path.join(CERT_FOLDER, domain, "crt.pem")
|
||||||
|
|
Loading…
Add table
Reference in a new issue