adamdburton / destiny-2-api-client

PHP API client for Destiny 2
MIT License
11 stars 8 forks source link

cURL error 60: SSL certificate problem #2

Closed mikewojtkiewicz closed 7 years ago

mikewojtkiewicz commented 7 years ago

I'm having issues with SSL verification and your code. How can I add set ssl verify to false?

adamdburton commented 7 years ago

You can pass in your own Guzzle client.

$api = new AdamDBurton\Destiny2ApiClient\Api('{api-key}', new GuzzleClient([ 'verify' => false ]));

mikewojtkiewicz commented 7 years ago

That actually didn't work for me either. I ended up changing your code a bit: on client.php line 42 I change it to $client = new GuzzleClient(['verify' => false]);