VPS侦探论坛
标题:
LNMP 1.5 PHP 调用 file_get_contents() 报错
[打印本页]
作者:
baqioyx
时间:
2018-8-10 18:45
标题:
LNMP 1.5 PHP 调用 file_get_contents() 报错
[attach]5250[/attach]
问题描述:
该命令在LNMP1.4上运行是正常的,如在LNMP1.5上运行会出现上述的错误!军哥帮看看具体是什么问题!
作者:
licess
时间:
2018-8-11 17:27
这个和是1.4或1.5没关系
file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
这个问题的话可能与ssl证书有关系
php -r "print_r(openssl_get_cert_locations());" 看一下default_cert_file 对应的位置在那,先备份该文件,然后下载 https://curl.haxx.se/ca/cacert.pem 替换 default_cert_file 对应的文件
然后重启一下php-fpm
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4