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

selvavignesh's avatar

SSL certificate problem:Login with Gmail

I tried to login with my gmail account and I got this error.

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

My controller

public function gmaillogin() {
      return Socialite::driver('google')->redirect();
    }

    public function handleGoogleCallback()
    {
        try {
  
            $user = Socialite::driver('google')->user();
   
            $finduser = User::where('google_id', $user->id)->first();
   
            if($finduser){
   
                Auth::login($finduser);
  
                return redirect('/');
   
            }else{
                $newUser = User::create([
                    'name' => $user->name,
                    'email' => $user->email,
                    'google_id'=> $user->id
                ]);
  
                Auth::login($newUser);
   
                return redirect()->back();
            }
  
        } catch (Exception $e) {
            return redirect('login');
        }
    }

What am I missing here?.

0 likes
8 replies
selvavignesh's avatar

Yes I googled about 2 hours.I placed this line curl.cainfo="C:/Users/SSLAP062/Downloads/cacert.pem in my php.ini. But it didn't work.And I referred the same link you have shared.

selvavignesh's avatar

Now I am getting this.

Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=false` resulted in a `403 Forbidden` response:
{
"error": {
"code": 403,
"message": "Legacy People API has not been used in project 685251750035 before or it (truncated...)

I have enabled Google+ API in google cloud.

will Laravel Socialite work in PHP 5.5.27. or I have to update my php version?

Sinnbeck's avatar

I really have no idea. php 5.5 is so old that I would never run using it. I really recommend upgrading to at least 7.1

2 likes
jinnu11's avatar

anybody can help me.. unable re-new ssl on my website

I ran this command: ee site update https://www.quickpayportal.pro/ --le=renew

It produced this output: Renewing SSl cert for https://www.quickpayportal.pro/ ERROR : Cannot RENEW SSL cert ! Your current cert already EXPIRED ! Check logs for reason tail /var/log/ee/ee.log & Try Again!!!

My web server is (include version): nginx

The operating system my web server runs on is (include version): untubu 14.4

My hosting provider, if applicable, is: easyengine

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): bitvise ssh client (Terminal)

nextgenanakgida's avatar

Have you got solution for this? If yes plz share i am having same problem

Please or to participate in this conversation.