Commit e883a3fb authored by Adrian Rossouw's avatar Adrian Rossouw

Leftover receipt with ssl being disabled on a site. #859120

parent 6c3a8eac
...@@ -333,7 +333,7 @@ class provisionConfig_http_ssl_site extends provisionConfig_http_site { ...@@ -333,7 +333,7 @@ class provisionConfig_http_ssl_site extends provisionConfig_http_site {
'%site' => $this->uri, '%site' => $this->uri,
'%server' => $this->data['server']->remote_host))); '%server' => $this->data['server']->remote_host)));
$used = provisionService_http_ssl::certificate_in_use($this->ssl_key, $this->data['server']); $used = provisionService_http_ssl::certificate_in_use($ssl_key, $this->data['server']);
if (!$used) { if (!$used) {
// we can remove the certificate from the server ssl.d directory. // we can remove the certificate from the server ssl.d directory.
...@@ -342,7 +342,7 @@ class provisionConfig_http_ssl_site extends provisionConfig_http_site { ...@@ -342,7 +342,7 @@ class provisionConfig_http_ssl_site extends provisionConfig_http_site {
$this->data['server']->sync($path); $this->data['server']->sync($path);
// Most importantly, we remove the hold this cert had on the IP address. // Most importantly, we remove the hold this cert had on the IP address.
provisionService_http_ssl::free_certificate_ip($this->ssl_key, $this->data['server']); provisionService_http_ssl::free_certificate_ip($ssl_key, $this->data['server']);
} }
} }
......
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