$clientResponse = $client->post('https://localhost/excel_parser', [
'verify' => 'C:/Server/OpenServer/modules/php/PHP-7.1-x64/cacert.pem',
'multipart' => [
[
'name' => 'excel_file',
'filename' => $file->getClientOriginalName(),
'contents' => fopen($file->getRealPath(), 'r')
],
[
'name' => 'send_data_to_url',
'contents' => $this->generateUrl(
'inventory_excel_file_callback_endpoint',
['user' => $user->getId()],
UrlGeneratorInterface::ABSOLUTE_URL
)
],
[
'name' => 'user_api_key',
'contents' => $user->getApiKey()
]
]
]);
Получаю ошибку: 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'.
Если ставлю: verify => true - то-же самое. Если false- 'Client error: `POST https://localhost/excel_parser` resulted in a `404 Not Found` response:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/T (truncated...)
'
Как мне заставить газзл видеть сертификат?