Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL certificate problem #272

Open
inilim opened this issue Sep 13, 2023 · 2 comments
Open

SSL certificate problem #272

inilim opened this issue Sep 13, 2023 · 2 comments

Comments

@inilim
Copy link

inilim commented Sep 13, 2023

"Msg": "Ошибка при отправке запроса к яндексу: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.direct.yandex.com/json/v5/reports. Response: Code: 0", "Line": 99, "Code": 0, "File": "C:\\other\\OSPanel\\domains\\noks\\vendor\\sitkoru\\yandex-direct-api\\src\\services\\reports\\ReportsService.php",

@inilim
Copy link
Author

inilim commented Sep 14, 2023

Решил это добавив параметр "verify" в методе "getClient" класса "directapi\DirectApiService"

private function getClient(): Client { return new Client([ 'verify' => DEFAULT_ROOT_DIR . '/cron/other/cacert.pem', ]); }

@SonicGD
Copy link
Member

SonicGD commented Sep 14, 2023

Привет. Поидее должно быть достаточно установить ca-certificates на машине или в контейнер чтобы всё работало.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants