jelovac / bitly4laravel

Provides a Laravel package to communicate with Bit.ly API
35 stars 18 forks source link

SSL certificate problem: self signed certificate in certificate chain #3

Closed bulletinmybeard closed 10 years ago

bulletinmybeard commented 10 years ago

I got this error message while shorten a url. After extending the curl request, all works fine! Please add _CURLOPT_SSLVERIFYHOST and _CURLOPT_SSLVERIFYPEER to the _curl_setoptarray() in Connection.php as an hotfix.

$options[CURLOPT_SSL_VERIFYHOST] = 0;
$options[CURLOPT_SSL_VERIFYPEER] = 0;

curl_setopt_array($curl, $options);

cheers

jelovac commented 10 years ago

Hi thanks for reporting. I cant implement it because it will disable SSL verification for other users. Will be implementing some method in near future which will add the possibility to pass curl options to the connection class. Until then use the method you suggested.

jelovac commented 10 years ago

Added a quick fix, after some testing will merge it with stable branch tomorrow.

crispwake commented 9 years ago

+1 - I am getting SSL Errors. Can you please let me know how I can disable the SSL checks, and preferably add it to the documentation?