Permalink
Browse files

fix curl ssl cacert invalid file

  • Loading branch information...
1 parent c81dfde commit ecca054c40d0442738bb07d74acf0d7c88199c11 @dosercz committed Nov 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/base_facebook.php
@@ -935,8 +935,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,

0 comments on commit ecca054

Please sign in to comment.