Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Čamo's avatar
Level 3

Github login redirect to localhost ssl problem

I would like to implement Github login via Socialite package https://laravel.com/docs/5.8/socialite for Laravel 5.8. Login works fine but redirect callback throws me an error: GuzzleHttp\Exception\RequestException cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

Redirect url is set in Github application like http://localhost:8000/github/login/callback

How to get an user data on localhost?

0 likes
6 replies
Čamo's avatar
Level 3

So I have cacert.pem file in laravel/public diretory. I made a user.ini file in public dir and have curl.cainfo="/path/to/downloaded/cacert.pem" directive there. Then I tried to restart artisan server and login but still the same error. I am not sure if it should be .user.ini or user.ini means dot before filename.

Čamo's avatar
Level 3

What is the artisan php.ini? Is it console php.ini? I am lost in this error.

MichalOravec's avatar

php.ini is config file for php.

Alebo php.ini je konfiguracny subor pre php.

Čamo's avatar
Level 3

Ok I have it. It was a wrong php.ini file. It is not the same in console. I edited the wrong one. Díky.

Please or to participate in this conversation.