How to fix “cURL error 60: SSL certificate problem” in Laravel while using third party services

Sometimes, while working on development environment in Laravel project, we might face with the error like:

GuzzleHttp\Exception\RequestException
cURL error 60: SSL certificate problem: unable to get local issuer certificate

while using third party services like Mailgun, Postmark or any others.

As you might know, these services are using Guzzle API and to fix the issue above is just put the next params to a specific service in config/services.php eg.:


'mailgun' => [
    ...
    'guzzle' => [
        'verify' => false,
    ],
]

One thought on “How to fix “cURL error 60: SSL certificate problem” in Laravel while using third party services

  1. xmc

    Glorious data here. Possibly should you throw in a few pictures it would make the entire thing extra interesting. Anyway, there usually are not much good supply like this.

Leave a Reply