Guzzle Curl Error 60 SSL unable to get local issuer

后端 未结 11 1770
刺人心
刺人心 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:22

    this really helps me

    Follow this link: http://curl.haxx.se/ca/cacert.pem Copy the entire page and save it is "cacert.pem"

    Then in your php.ini file insert or edit the

    ;;;;;;;;;;;;;;;;;;;;
    ; php.ini Options  ;
    ;;;;;;;;;;;;;;;;;;;;
    
    curl.cainfo = "[pathtothisfile]\cacert.pem"
    

    Problem solved (Not recommended in a production environment)

提交回复
热议问题