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

前端 未结 19 1635
天涯浪人
天涯浪人 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:25

    Attention Wamp/Wordpress/windows users. I had this issue for hours and not even the correct answer was doing it for me, because i was editing the wrong php.ini file because the question was answered to XAMPP and not for WAMP users, even though the question was for WAMP.

    here's what i did

    Download the certificate bundle.

    Put it inside of C:\wamp64\bin\php\your php version\extras\ssl

    Make sure the file mod_ssl.so is inside of C:\wamp64\bin\apache\apache(version)\modules

    Enable mod_ssl in httpd.conf inside of Apache directory C:\wamp64\bin\apache\apache2.4.27\conf

    Enable php_openssl.dll in php.ini. Be aware my problem was that I had two php.ini files and I need to do this in both of them. First one can be located inside of your WAMP taskbar icon here.

    and the other one is located in C:\wamp64\bin\php\php(Version)

    find the location for both of the php.ini files and find the line curl.cainfo = and give it a path like this

    curl.cainfo = "C:\wamp64\bin\php\php(Version)\extras\ssl\cacert.pem"

    Now save the files and restart your server and you should be good to go

提交回复
热议问题