unable to get local issuer certificate – google drive api – PHP [duplicate]

i use oauth 2.0 and openidConnect in php with google library, i’ve already got a curl error 60 for certificate but it is now fixed with the command 'verify' => __DIR__ . '/cacert.pem'

now i’m trying to manage my google drive, so i have another page, the code is complete, just to show me my files, and it work when i execute the php file with the command php Drive.php

but when i try to have a page that access to this Drive.php to show me the files, i’m getting this :

Fatal error: Uncaught GuzzleHttpExceptionRequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://oauth2.googleapis.com/token in C:wamp64wwwintranetvendorguzzlehttpguzzlesrcHandlerCurlFactory.php on line 211

i think its because of this line $results = $driveManager->files->listFiles($optParams);

i’ve tried everything, editing php.ini, stopping the verification certificate, setting my localhost as https with self-signed certificate.

i think i’m missing something somewhere

Source: Ask PHP