J7mbo / twitter-api-php

The simplest PHP Wrapper for Twitter API v1.1 calls
MIT License
1.82k stars 802 forks source link

SSL certificate problem: unable to get local issuer certificate #243

Closed ghost closed 6 years ago

ghost commented 6 years ago

2017-08-11_110906 Problems with wamp?

Thunder33345 commented 6 years ago

i think it's caused because you didnt set up your certs for CURL properly

ghost commented 6 years ago

Hi @Thunder33345 ! It works if I add CURLOPT_SSL_VERIFYPEER => false to $options but I'm not sure if it's called "properly"

J7mbo commented 6 years ago

Yep, that's because you need to set up your cURL certificates properly. Google is your friend here :)

abrahaobittar commented 6 years ago

Download the cacert.pem from here https://curl.haxx.se/docs/caextract.html and change your php.ini to this: curl.cainfo = "/cacert.pem";

J7mbo commented 6 years ago

Closing this as no response and it doesn't seem directly related to the library but more to PHP instead. If this is not the case, please feel free to re-open / create a new issue.

J7mbo commented 6 years ago

PS - happy to accept README PRS highlighting this as an issue for windows users so we can avoid threads like this :)