From 0138b82c135cbaad24f4772baf328d0448c1dd09 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 15 Jul 2014 09:13:37 +0200 Subject: [PATCH] [UPDATE] Confirm the certificates CN at least --- include/lib/jsonRPCClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lib/jsonRPCClient.php b/include/lib/jsonRPCClient.php index 33947440..b6675f2d 100644 --- a/include/lib/jsonRPCClient.php +++ b/include/lib/jsonRPCClient.php @@ -109,7 +109,7 @@ class jsonRPCClient { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $request); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); + // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); $response = curl_exec($ch); if (curl_errno($ch)) throw new Exception('RPC call failed: ' . curl_error($ch)); if ($this->debug) $this->debug_output[] = 'Response: ' . $response;