Skip to content

Conversation

baileyherbert
Copy link

In environments where a certificate authority bundle is not available or configured, this package will fail with an error:

cURL error 60: SSL certificate problem: unable to get local issuer certificate

Since this issue can't be fixed on the server side in some cases (e.g. shared hosting), I added a $config parameter to the constructor allowing us to pass Guzzle options, including a certificate authority bundle:

$caller = new InsightsCaller($key, 'en', ['verify' => '/path/to/cacert.pem']);

@dsentker
Copy link
Owner

dsentker commented Dec 3, 2018

Great! Thank you,

@dsentker dsentker merged commit cfe392a into dsentker:master Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants