Skip to content
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

Certificate issues #140

Open
agsola opened this issue Sep 26, 2016 · 4 comments
Open

Certificate issues #140

agsola opened this issue Sep 26, 2016 · 4 comments

Comments

@agsola
Copy link

agsola commented Sep 26, 2016

I'm getting certificate issues in some of the queries.
Any ideas?

Maybe should be nice a way to disable certificate check to avoid having errores with cURL.

I get this error:
Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 51: SSL peer certificate or SSH remote key was not OK (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in /ROUTE/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187
Stack trace:
#0 /ROUTE/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 /ROUTE/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 /ROUTE/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handle

@tomwalder
Copy link
Owner

My guess is that your local CA file is out of date.

I have not had any issues like this.

@agsola
Copy link
Author

agsola commented Sep 26, 2016

Most of the queries are done properly without issues. But I've added a catch to get the errors and mail me and I've noticed that.

@olalekan-agbaje
Copy link

Just so you know what worked for me, The file in the zip folder in the post at (Post on solving this issue) worked for me with no issues at all.

Copy the certificate file to a location on your hard drive, update the line

;curl.cainfo

in your php.ini file to read

curl.cainfo= "path_to_cert\cacert.pem"

Restart your Apache server. You should be fine.

By the way, Awesome work Tom. You are a life saver.

@agsola
Copy link
Author

agsola commented Sep 27, 2016

Thank you kafcom, though it seems weird to me, since if that were the problem I always would get that problem. Maybe is when trying to get an intermediate CA...

I'll try it however to see if it works, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants