在定期更新和重新启动服务器之后,我访问了服务器上的一个网页,并得到以下错误:
Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/var/www/domain.ca/public_html/page.php on line 51
Warning: file_get_contents(): Failed to enable crypto in /var/www/domain.ca/public_html/
page.php on line 51
Warning: file_get_contents(https://www.cryptopia.co.nz/api/GetMarkets/BTC): failed to open
stream: operation failed in /var/www/domain.ca/public_html/page.php on line 51经过更多的测试后,我的另一个file_get_contents()运行良好。我看到的唯一区别是他们使用的是Comodo证书。因此,我想这与问题有关,但我没有找到解决办法。
OS是UbuntuServer16.04.3,PHP是7.0.22版本。
欢迎任何帮助!
发布于 2018-01-01 14:26:00
看上去要么是隐形眼镜,要么是科莫多改变了他们的立场,几天后问题就自行解决了。
感谢那些想帮忙的人。
我会在一两天后删除这个问题,让评论者看到这个“解决办法”。
https://serverfault.com/questions/890199
复制相似问题