Ошибка curl SSL certificate problem: unable to get local issuer certificate

Avatar
  • обновлен
  • Отвечен


Добрый день! При попытке обратиться к API сделать POST-запрос на адрес https://apirosreestr.ru/api/cadaster/search  появляется ошибка

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://apirosreestr.ru/api/cadaster/search" 

Причем даже просто при запросе к вашему сайту из консоли без участия PHP выводится следующее:

user@user:/tmp$ curl --verbose 'https://apirosreestr.ru'

* Rebuilt URL to: https://apirosreestr.ru/

* Trying 91.240.208.142...

* TCP_NODELAY set

* Connected to apirosreestr.ru (91.240.208.142) port 443 (#0)

* ALPN, offering h2

* ALPN, offering http/1.1

* successfully set certificate verify locations:

* CAfile: /etc/ssl/certs/ca-certificates.crt

CApath: /etc/ssl/certs

* TLSv1.3 (OUT), TLS handshake, Client hello (1):

* TLSv1.3 (IN), TLS handshake, Server hello (2):

* TLSv1.2 (IN), TLS handshake, Certificate (11):

* TLSv1.2 (OUT), TLS alert, Server hello (2):

* SSL certificate problem: unable to get local issuer certificate

* stopped the pause stream!

* Closing connection 0

curl: (60) SSL certificate problem: unable to get local issuer certificate

More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not

establish a secure connection to it. To learn more about this situation and

how to fix it, please visit the web page mentioned above.

Каким образом это исправить? Пробовал с множества серверов

Прикрепленные ответы
Avatar
Специалист Техподдержки
  • Ответ
  • На рассмотрении

Это потому, что закончился срок действия промежуточных сертификатов. Уже все восстановлено.

Avatar
Специалист Техподдержки
  • Ответ
  • На рассмотрении

Это потому, что закончился срок действия промежуточных сертификатов. Уже все восстановлено.