简体   繁体   中英

PHP cURL Error 60 - Traditional Solutions Not Working

Getting the classic error:

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

Relevant specs:

  • Windows 10 x64
  • PHP 7.4.6

I've tried:

  • Setting curl.cainfo and openssl.cafile to a freshly-downloaded cacert.pem
  • Generating my own certificates and adding them to the Windows certificate store

Setting my client to ignore verification is not an option. This needs to work.

Do you use any WAMP, XAMP servers? If so you need to make sure that you are editing the right php.ini file. Make sure to have the path correctly with the "/" in windows.

curl.cainfo = "D:/WAMP64/bin/php/php7.4.0/extras/ssl/cacert.pem"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM