Commit 06ba2515 authored by Joshua Tauberer's avatar Joshua Tauberer

get_domain_ssl_files returned the wrong path for the CSR for PRIMARY_HOSTNAME

parent b5aa1b0f
...@@ -87,8 +87,12 @@ def get_domain_ssl_files(domain, env): ...@@ -87,8 +87,12 @@ def get_domain_ssl_files(domain, env):
else: else:
ssl_certificate = os.path.join(env["STORAGE_ROOT"], 'ssl/domains/%s_certifiate.pem' % safe_domain_name(domain)) ssl_certificate = os.path.join(env["STORAGE_ROOT"], 'ssl/domains/%s_certifiate.pem' % safe_domain_name(domain))
# Where would the CSR go? # Where would the CSR go? As with the SSL cert itself, the CSR must be
csr_path = os.path.join(env["STORAGE_ROOT"], 'ssl/domains/%s_cert_sign_req.csr' % safe_domain_name(domain)) # different for each domain name.
if domain == env['PRIMARY_HOSTNAME']:
csr_path = os.path.join(env["STORAGE_ROOT"], 'ssl/ssl_cert_sign_req.csr')
else:
csr_path = os.path.join(env["STORAGE_ROOT"], 'ssl/domains/%s_cert_sign_req.csr' % safe_domain_name(domain))
return ssl_key, ssl_certificate, csr_path return ssl_key, ssl_certificate, csr_path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment