close

[Solved] cURL error 60: SSL certificate in Laravel 5.4

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error cURL error 60: SSL certificate in Laravel 5.4 in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How cURL error 60: SSL certificate in Laravel 5.4 Error Occurs?

Today I get the following error cURL error 60: SSL certificate in Laravel 5.4 in php.

How To Solve cURL error 60: SSL certificate in Laravel 5.4 Error ?

  1. How To Solve cURL error 60: SSL certificate in Laravel 5.4 Error ?

    To Solve cURL error 60: SSL certificate in Laravel 5.4 Error You can use GuzzleHttp\Client:
    $client = new Client(['verify' => false]);

  2. To Solve cURL error 60: SSL certificate in Laravel 5.4 Error

    To Solve cURL error 60: SSL certificate in Laravel 5.4 Error You can use GuzzleHttp\Client:
    $client = new Client(['verify' => false]);

Solution 1

A quick solution but insecure (not recommended).

Using cURL:

Set CURLOPT_SSL_VERIYPEER to false

Using Guzzle: Set verify to false, for example

$client->request('GET', 'https://somewebsite.com', ['verify' => false]);

Solution 2

You can use GuzzleHttp\Client:

$client = new Client(['verify' => false]);

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment