Skip to content

Mac OSX 10.9.5 local development gives SSL certificate problem #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dataground opened this issue Nov 2, 2014 · 1 comment
Closed

Comments

@dataground
Copy link

On Mac OSX 10.9.5 a call to the API gives an SSL error

MessageBird\Exceptions\HttpException: SSL certificate problem: unable to get local issuer certificate

I did not find out why the MessageBird Cert is not trusted. But the error does not seem to occur on other os (linux etc)

One can switch off verification in Development by using this hack in vendor/messagebird/php-rest-api/src/MessageBird/Common/HttpClient.php:106

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

Maybe it is possible to add a function to skip SSL verification in the high level API?

@samwierema
Copy link
Contributor

This issue is commonly caused by a CA certificate nog being present on the system that is making the request. You'll find the certificate that is needed here https://www.digicert.com/CACerts/DigiCertSHA2SecureServerCA.crt.

gedimin45 pushed a commit that referenced this issue Aug 15, 2016
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

No branches or pull requests

2 participants