Guzzle Curl Error 60 SSL unable to get local issuer

后端 未结 11 1766
刺人心
刺人心 2020-12-14 16:00

Trying to use the YouTube API v3 to get some video(s) information, using Guzzle in Symfony2 using Service Descriptors.

When I run the script, I get this:

11条回答
  •  甜味超标
    2020-12-14 16:43

    The best option is

    https://github.com/composer/ca-bundle

    $client = new \GuzzleHttp\Client([
        \GuzzleHttp\RequestOptions::VERIFY => \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath()
    ]);
    

提交回复
热议问题