D
D
Di Da2020-02-23 09:59:47
Yandex
Di Da, 2020-02-23 09:59:47

Why does Yandex Payment give an SSL error, if any?

Customer site. We set automatic payment using the library for working with the API. Throws this error when getting a token.

Fatal error: Uncaught exception 'YM_ApiConnectionError' with message 'Could not verify Yandex.Money's SSL certificate. Please make sure that your network is not intercepting certificates. (Network error: SSL certificate problem: unable to get local issuer certificate)' in /var/www/u0555648/public_html/djonny.ru/lib/YandexMoney/ApiRequestor.php:96 Stack trace: #0 /var/www/u0555648/public_html/djonny.ru/lib/YandexMoney/ApiRequestor.php(51): YM_ApiRequestor->_handleCurlError(60, 'SSL certificate...') #1 /var/www/u0555648/public_html/djonny.ru/lib/YandexMoney/ApiRequestor.php(16): YM_ApiRequestor->_curlRequest('https://sp-mone...', 'grant_type=auth...') #2 /var/www/u0555648/public_html/djonny.ru/lib/YandexMoney.php(58): YM_ApiRequestor->request('https://sp-mone...', 'grant_type=auth...') #3 /var/www/u0555648/public_html/djonny.ru/access.php(36): YandexMoney->receiveOAuthToken('A55E1EC37F83CCF...', 'https://djonny....', 'F875F67BC5896B1...') #4 {main} thrown in www.site.com


The site has a certificate from Let's Encrypt. Yes free. Doesn't he fit?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-02-23
@ky0

This is not a problem with your certificate, but with the fact that the server does not seem to have a root for Yandex. You need to update the package ca-certificatesor similar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question