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

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

    I have Very Simple Solution of this problem. You can do this without any certificate file..

    Go on Laravel Root Folder -> Vender -> guzzlehttp -> guzzle -> src

    open Client.php

    find $defaults Array . that look like this way ..

    $defaults = [
        'allow_redirects' => RedirectMiddleware::$defaultSettings,
        'http_errors'     => true,
        'decode_content'  => true,
        'verify'          => true,
        'cookies'         => false
    ];
    

    Now main Job is to change value of verify key ..

    'verify'          => false,
    

    So After this it will not check SSL Certificate for CURL Request... This Solution is work for me. I find this solution after many research ...

提交回复
热议问题