J7mbo / twitter-api-php

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

getting ssl cert error #220

Closed weswilliams1 closed 7 years ago

weswilliams1 commented 7 years ago

I'm getting this error. I'm using PHP 5.6.28 and iis7

Uncaught exception 'Exception' with message 'SSL certificate problem: unable to get local issuer certificate

hefengxian commented 7 years ago

please with options

$result = $this->client->buildOauth($url, self::REQUEST_POST)
                    ->setPostfields($options['postParams'])
                    ->performRequest(true, [
                        CURLOPT_PROXY => 'https://xxx.xxx.xx.xxx:xxxx',
                        CURLOPT_SSL_VERIFYPEER => false
                    ]);
J7mbo commented 7 years ago

Closing as this is an old one, if you still have a problem please feel free to re-open and we can work on it.