Skip to content

Commit

Permalink
[UPDATE] Confirm the certificates CN at least
Browse files Browse the repository at this point in the history
  • Loading branch information
MPOS123 committed Jul 15, 2014
1 parent d49f807 commit 0138b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lib/jsonRPCClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function __call($method, $params) {
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;
Expand Down

0 comments on commit 0138b82

Please sign in to comment.