Home » More » How to solve cURL error 60: ssl certificate problem

How to solve cURL error 60: ssl certificate problem

In this tutorial, I will show you, how to solve cURL Error 60: SSL certificate problem.

Notice: That error was met me when I tried to install a new Symfony project. Your situation may be different from my case. But, you can follow the steps below.

 As an example, when you are creating a new Symfony project by using command line interface, sometimes you can see the error, cURL error 60.

createting new project using symfony

Why does this error happen? This error happens because peer certificate cannot be authenticated with known CA certificates.

How to solve that problem?

To solve that error, we have to provide cURL certificate authority information and define the CURL certificate authority information path.

How to do it?

Notice: Here  I’m using xampp as my web server. Your one may be different from my one.

Click here to download the cURL certificate authority information file. Then, move that file into xampp\php\extras\ssl folder. After that go back to the PHP  folder and open php.ini file. Then, search for ‘curl.cainfo’.

curl.cainfo

curl.cainfor small

Copy and paste ‘curl.cainfo’ file path (C:\xampp\php\extras\ssl\cacert.pem.txt) into php.ini file to value of curl.cainfo. Remove semicolon to uncomment the line and save changes after pasting the file path.

After doing those things, the php.ini file is as follows.

uncommented cURL error

Notice: Make sure that you,

             Insert .txt extension at end of the file path.

              Remove semicolon.

              Save all changes.

              Find the right location to set the path.            

Finally, navigate to your projects folder and open a new command line interface. Try to install a new Symfony project again.

create new symfony project

If you got the same error or another error after doing above things, try followings.

  1. Restart the web server.
  2. Remove .txt extension and save changes. Then, restart the web server.

As you can see, now we have solved the problem.

downloading new symfony project

If you have any question, please comment in the comment section. If you like this article don’t forget to share like to facebook page. Thank you for reading.

Please follow and like us:
Summary
How to solve cURL error 60: ssl certificate problem
Article Name
How to solve cURL error 60: ssl certificate problem
Description
In this tutorial I will show you, how to solve cURL Error 60: SSL certificate problem. Notice: That error was met me when I tried to install new symfony project. Your scenario may be different from my case. But, you can follow bellow steps to solve the error.
Author
Publisher Name
Angular + Laravel
Publisher Logo