[Solved] Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60

Guzzle

Error prompt

If an error occurs as follows:

Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/… in xxx.php

The reason is that the local CURL SSL certificate is too old to recognize.

Solution:

  • Download an up-to-date certificate from http://curl.haxx.se/ca/cacert… Then save it to an arbitrary directory.
  • Then put catr.pem in the bin directory of php and edit php.ini, open the php.ini file with notepad or notepad++, about line 1932.
  • Remove the comment “;” in front of curl.cainfo, then write the full path and file name of the cacert.pem certificate at the end, mine is as follows

Finally, restart the wamp.

Read More: