diff --git a/lib/Cake/Network/Http/HttpSocket.php b/lib/Cake/Network/Http/HttpSocket.php index 46fde7d7f..e4c0ad62a 100644 --- a/lib/Cake/Network/Http/HttpSocket.php +++ b/lib/Cake/Network/Http/HttpSocket.php @@ -684,7 +684,7 @@ class HttpSocket extends CakeSocket { } unset($this->config[$key]); } - if (empty($this->_context['ssl']['cafile'])) { + if (empty($this->config['context']['ssl']['cafile'])) { $this->config['context']['ssl']['cafile'] = CAKE . 'Config' . DS . 'cacert.pem'; } if (!empty($this->config['context']['ssl']['verify_host'])) {