Commit 2a6ba312 authored by helmo's avatar helmo

Merge remote-tracking branch 'origin/3020747-https-check-cert-readable' into 7.x-3.x

parents db7adaef 6a6ee095
......@@ -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