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

Documentation update suggestion #734

Open
spagu opened this issue Mar 7, 2017 · 1 comment
Open

Documentation update suggestion #734

spagu opened this issue Mar 7, 2017 · 1 comment

Comments

@spagu
Copy link

spagu commented Mar 7, 2017

Your example from a page does not work. I have:
Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate

no idea how to solve it. Cannot edit php.ini. I am following your example and in first test it is failing so I assume some magic command added to CURL will solve that issue. Placing yml files does not fix a problem like some people report it works. So I am asking to update documentation that wont fail in first time usage. Thanks.

@aik099
Copy link
Member

aik099 commented Mar 8, 2017

You're posting to wrong repo, because it's driver specific issue and should be reported to https://github.com/minkphp/MinkGoutteDriver repo instead.

Googling about the error revealed page https://laracasts.com/discuss/channels/laravel/how-to-solve-curl-error-60-ssl-certificate-in-laravel-5-while-facebook-authentication?page=1, that suggests specifying curl.cainfo setting in php.ini, which you can't change.

Probably (not sure about at 100%) you can specify some options (e.g. alternative local certificate path) when creating driver, that later would be passed on to Guzzle.

$mink = new Mink(array(
    'goutte' => new Session(new GoutteDriver(new GoutteClient( /* guzzle options goes here */ ))),
));

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