PHP - SSL certificate error: unable to get local issuer certificate

前端 未结 16 2739
时光取名叫无心
时光取名叫无心 2020-11-21 07:49

I\'m running PHP Version 5.6.3 as part of XAMPP on Windows 7.

When I try to use the Mandrill API, I\'m getting the following error:

Uncaught e

16条回答
  •  执念已碎
    2020-11-21 08:05

    I got the error like :

    failed loading cafile stream: `C:\xamppPhp\apache\bin\curl-ca-bundle.crt`
    

    I am using windows machine. So I followed the below steps.

    1. I have downloaded .pem file from " https://curl.haxx.se/docs/caextract.html "
    
    2. Then I kept the downloaded file inside  "C:/xamppPhp/apache/bin/" folder and renamed the same downloaded file to "curl-ca-bundle.crt".
    
    3. I restarted XAMPP and cleared the cache.
    4. It's done.
    

    Hope it may help someone

提交回复
热议问题