CURL - ошибка cURL error 60: Peer's Certificate issuer is not recognized: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
(Новая страница: «=== CURL - ошибка cURL error 60: Peer's Certificate issuer is not recognized === Сломалась авторизация через социальные...»)
 
Строка 1: Строка 1:
 
=== CURL - ошибка cURL error 60: Peer's Certificate issuer is not recognized ===
 
=== CURL - ошибка cURL error 60: Peer's Certificate issuer is not recognized ===
  
Сломалась авторизация через социальные сети с ошибкой:
+
Сломалась авторизация через социальные сети с ошибкой curl-а:
 
  cURL error 60: Peer's Certificate issuer is not recognized. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://graph.facebook.com/v12.0/oauth/access_token
 
  cURL error 60: Peer's Certificate issuer is not recognized. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://graph.facebook.com/v12.0/oauth/access_token
  

Версия 21:09, 22 сентября 2021

CURL - ошибка cURL error 60: Peer's Certificate issuer is not recognized

Сломалась авторизация через социальные сети с ошибкой curl-а:

cURL error 60: Peer's Certificate issuer is not recognized. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://graph.facebook.com/v12.0/oauth/access_token

Ошибка означает, что нужно обновить корневые сертификаты SSL и прописать их в php.ini через директиву curl.cainfo:

# cd /etc && wget -c https://curl.haxx.se/ca/cacert.pem
# vi /var/www/php-bin-isp-php80/visitbox/php.ini
curl.cainfo = "/etc/cacert.pem"

и перезапустить Apache:

# systemctl restart httpd