From 1b9bf7b0fd118b6e79281125393d6686396fcd82 Mon Sep 17 00:00:00 2001 From: ber clausen Date: Thu, 21 Nov 2013 16:23:01 -0200 Subject: [PATCH] Always remove verify_host from SSL context. It is only used to be able to set ```CN_match```. --- lib/Cake/Network/Http/HttpSocket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Network/Http/HttpSocket.php b/lib/Cake/Network/Http/HttpSocket.php index 2be7e74a223..fa863f9023f 100644 --- a/lib/Cake/Network/Http/HttpSocket.php +++ b/lib/Cake/Network/Http/HttpSocket.php @@ -689,8 +689,8 @@ protected function _configContext($host) { } if (!empty($this->config['context']['ssl']['verify_host'])) { $this->config['context']['ssl']['CN_match'] = $host; - unset($this->config['context']['ssl']['verify_host']); } + unset($this->config['context']['ssl']['verify_host']); } /**