Commit 6a6ee095 authored by Jon Pugh's avatar Jon Pugh

Issue #3020747: Don't add SSL config to configuration files if the crt files...

Issue #3020747: Don't add SSL config to configuration files if the crt files aren't there/aren't readable
parent f92bf08a
......@@ -77,6 +77,12 @@ class Provision_Service_http_ssl extends Provision_Service_http_public {
$certs = $this->get_certificates($ssl_key);
$data = array_merge($data, $certs);
}
// Turn off ssl and redirection if the cert key is not readable or doesn't exist for some reason.
if (!is_readable($data['ssl_cert_key'])) {
$this->context->ssl_enabled = FALSE;
$data['ssl_redirection'] = FALSE;
}
}
return $data;
......
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