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

Phillipp's avatar

Socialite curl error

Hey,

I play around with socialite and want to get github login to work. I have set up a github application and followed the instructions for socialite on the docs. On the callback from github I get the following error:

RequestException in RequestException.php line 51:
cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html

The curl docs means thats a ssl certificate error but I am working on localhost with the build-in php dev server.

0 likes
5 replies
Phillipp's avatar

Ok another problem:

I got my Github ID, Nickname, Username and avatar path but not my email address.

Phillipp's avatar

Ok I have set my mail address to visible on github. Now it works.

graham's avatar

It looks like most GitHub accounts will return a null email by default so you'll probably want to take that into account.

bashy's avatar

If you're connecting to HTTPS sites via cURL, it requires some certs to verify the site certs. Have you got DNS setup properly for the dev environment?

vim /etc/resolv.conf

Please or to participate in this conversation.