zoukankan      html  css  js  c++  java
  • 更新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认证后又可以正常请求,请问是什么原因呢?
  • 相关阅读:
    VRChat之blender教程
    29(30).socket网络基础
    26(27).反射及面向对象进阶
    25.python之面向对象
    24.configparser&hashlib
    23.logging
    22.re(正则表达式)
    22.XML
    java日志系统 @Slf4j注解的正确使用
    java四种元注解:@Retention @Target @Document @Inherited)认知
  • 原文地址:https://www.cnblogs.com/honely/p/15570946.html
Copyright © 2011-2022 走看看