-2

I am using eBay API PHP SDK and get this error when running on my local WAMP server in Win 7:

Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187 ( ! ) GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in C:\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187

Image:

error pic

halfer
  • 19,824
  • 17
  • 99
  • 186
avi
  • 15
  • 4

2 Answers2

0

You need to check certificate and system CURL version. I had the same problem on my machine and updating CURL lib helped (because I'm using macports it was easy:

sudo port selfupdate
sudo port upgrade curl

If You are using different platform or package manager You need to investigate

Rafal Kozlowski
  • 720
  • 5
  • 12
0

you have to set in php.ini and restart server.

openssl.cafile=C:\path\to\cacert.pem

download it from here https://gist.github.com/VersatilityWerks/5719158/download

jmp
  • 2,456
  • 3
  • 30
  • 47