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

前端 未结 16 3077
时光取名叫无心
时光取名叫无心 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:04

    I tried this it works

    open

    vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php
    

    and change this

     $conf[CURLOPT_SSL_VERIFYHOST] = 2;
     `enter code here`$conf[CURLOPT_SSL_VERIFYPEER] = true;
    

    to this

    $conf[CURLOPT_SSL_VERIFYHOST] = 0;
    $conf[CURLOPT_SSL_VERIFYPEER] = FALSE;
    

提交回复
热议问题