更新ssl证书后 file_get_contents()方法失效

更新ssl证书后 file_get_contents()方法失效是什么原因?
 
事情是这样的。之前的接口一直都是用 file_get_contents()去请求的。但是今天早上域名的ssl安全证书突然到期了。没有一点提示。更新ssl证书后之前写的file_get_contents()调用接口的方法一直都在报错。
 
 
<br />
<b>Warning</b>:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in <b>/www/wwwroot/bs.8888cn/admin99/member.mj.php</b> on line <b>712</b><br />
<br />
<b>Warning</b>:  file_get_contents(): Failed to enable crypto in <b>/www/wwwroot/bs.
8888cn.cn/admin99/member.mj.php</b> on line <b>712</b><br />
<br /> <b>Warning</b>: file_get_contents(https://****/tsy/order/queryBalance?userid=slb16148467217309): failed to open stream: operation failed in <b>/www/wwwroot/7777.cn/admin99/member.mj.php</b> on line <b>712</b><br /> NULL

 

跳过https认证后又可以正常请求,请问是什么原因呢?
posted on 2021-11-18 10:03  微凉四月必瘦十斤  阅读(412)  评论(2编辑  收藏  举报