Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #46 from dosercz/master
Browse files Browse the repository at this point in the history
Fixed curl ssl invalid cert file
  • Loading branch information
gfosco committed Oct 15, 2013
2 parents 6c9df4b + ecca054 commit e90d402
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/base_facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,10 @@ protected function makeRequest($url, $params, $ch=null) {

curl_setopt_array($ch, $opts);
$result = curl_exec($ch);

if (curl_errno($ch) == 60) { // CURLE_SSL_CACERT

$errno = curl_errno($ch);
// CURLE_SSL_CACERT || CURLE_SSL_CACERT_BADFILE
if ($errno == 60 || $errno == 77) {
self::errorLog('Invalid or no certificate authority found, '.
'using bundled information');
curl_setopt($ch, CURLOPT_CAINFO,
Expand Down

0 comments on commit e90d402

Please sign in to comment.