cURL error 60: SSL certificate: unable to get local issuer certificate

前端 未结 19 1646
天涯浪人
天涯浪人 2020-11-22 10:51

I use WAMP on a local development environment and am trying to charge a credit card but get the error message:

cURL error 60: SSL certificate problem:

19条回答
  •  星月不相逢
    2020-11-22 11:30

    All of the answers are correct ; but the most important thing is You have to find the right php.ini file. check this command in cmd " php --ini " is not the right answer for finding the right php.ini file.

    if you edit

    curl.cainfo ="PATH/cacert.pem"
    

    and check

    var_dump(openssl_get_cert_locations()); 
    

    then curl.cainfo should have a value. if not then that's not right php.ini file;

    *I recommend you to search *.ini in wamp/bin or xxamp/bin or any server you use and change them one by one and check it. *

提交回复
热议问题