mallgroup / mpapi-client-php

MPAPI client is a PHP tool created to help Internet Mall, a. s. partners easily manage article catalog, deliveries, orders, etc. using Mall Marketplace API.
Apache License 2.0
6 stars 19 forks source link

call from localhost ? #15

Closed nightstarter closed 3 years ago

nightstarter commented 4 years ago

Hi there, when calling api from my CRM server (not a public server, only local) , I get

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

Is there a way how to ignore certificate verification ?

Thanks

Lumeriol commented 3 years ago

This problem is due you have not valid / defined certificate for cURL on localhost. You can download actual CA certificate i.e. from https://curl.haxx.se/docs/caextract.html and in php.ini set path in curl.cainfo directive. After restarting server problem should be resolved.

danielrataj commented 3 years ago

Closing due to further inactivity. Please reopen the issue in case of need. Thank you.