[UPDATE] Confirm the certificates CN at least

This commit is contained in:
Sebastian Grewe 2014-07-15 09:13:37 +02:00
parent d49f807c68
commit 0138b82c13

View File

@ -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;