Wednesday 15 April 2020

GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem

1. https://curl.haxx.se/ca/cacert.pem

download cacert.pem file
 
2. php.ini

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo ="C:/wamp64/www/wteam/cacert.pem"

3. restart services : Done
 
( ! ) Fatal error: Uncaught 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) in C:\wamp64\www\wteam\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201
( ! ) 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) in C:\wamp64\www\wteam\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201
Call Stack
#TimeMemoryFunctionLocation
10.0070367272{main}( )...\index.php:0
20.0595528752AuthController->callback( )...\index.php:86
30.0595529128League\OAuth2\Client\Provider\GenericProvider->getAccessToken( )...\index.php:70
40.0710609440League\OAuth2\Client\Provider\GenericProvider->getParsedResponse( )...\AbstractProvider.php:537
50.0710609440League\OAuth2\Client\Provider\GenericProvider->getResponse( )...\AbstractProvider.php:621
60.0710609440GuzzleHttp\Client->send( )...\AbstractProvider.php:608
70.4408647328GuzzleHttp\Promise\RejectedPromise->wait( )...\Client.php:130

No comments:

Post a Comment