amazon-pay-sdk-php icon indicating copy to clipboard operation
amazon-pay-sdk-php copied to clipboard

Error setting certificate verify locations: CAfile: ~/cacert.pem CApath: /etc/ssl/certs.

Open vishalpawar-tudip opened this issue 6 years ago • 2 comments

Hello Team,

We are getting an error while making a POST call to the endpoint i.e. "https://mws.amazonservices.com/OffAmazonPayments/2013-01-01". Here is the stack trace:

"Array ( [url] => https://mws.amazonservices.com/OffAmazonPayments/2013-01-01 [content_type] => [http_code] => 0 [header_size] => 0 [request_size] => 0 [filetime] => 0 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0 [namelookup_time] => 0 [connect_time] => 0 [pretransfer_time] => 0 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 [redirect_url] => [primary_ip] => [certinfo] => Array ( ) [primary_port] => 0 [local_ip] => [local_port] => 0 )"

Any help would be really appreciated. Thanks.

vishalpawar-tudip avatar Jun 13 '18 14:06 vishalpawar-tudip

A few quick questions:

  • What version of the Amazon Pay PHP SDK are you using?
  • What version of PHP are you using? ("php -version")
  • What OS and versions of OS are you using?

bjguillot avatar Jun 13 '18 14:06 bjguillot

Hello @bjguillot,

Firstly thanks for the quick response. We are using Amazon Pay PHP SDK version 3.1, Php version 5.5.9 and OS is Ubuntu 14.04.3 LTS. Please, let me know for any solution.

vishalpawar-tudip avatar Jun 13 '18 14:06 vishalpawar-tudip