Google-api-php-client: cURL error 60: SSL certificate problem: unable to get local issuer certificate

Created on 18 Sep 2020  路  2Comments  路  Source: googleapis/google-api-php-client

Environment details

  • OS:Windows 10 Pro
  • PHP version: 7.3.19
  • Package name and version: google/apiclient:"^2.7.1"

Steps to reproduce

I am trying to validate Google Id Token in my Guard Authenticator ( Symfony 4.4). I get the id token from a get request. When i try to validate the token using code below i get this error:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
It is wired because it has worked before.

Code example

  $client = new \Google_Client(['client_id'=>null]);
 $payload = $client->verifyIdToken($credentials['id_token']);

Thanks!

question

Most helpful comment

Thanks mate i fixed it. I followed instructions from this medium article here mentioned there.
Thank you very much!

All 2 comments

This error indicates a misconfiguration on the machine running your application. Take a look at the various solutions discussed here and let me know if that helps.

Thanks mate i fixed it. I followed instructions from this medium article here mentioned there.
Thank you very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlexandreGerault picture AlexandreGerault  路  5Comments

Dresing picture Dresing  路  3Comments

usamamashkoor picture usamamashkoor  路  5Comments

cmcfadden picture cmcfadden  路  5Comments

artemiusgreat picture artemiusgreat  路  3Comments