活到老学到老  

记录遇到问题的点点滴滴。

0

使用此证书根证书包:https://curl.haxx.se/ca/cacert.pem将此证书复制到硬盘上。 并在php.ini上使用curl.cainfo = "path_to_cert\cacert.pem"

6年前发布  · 1746 次阅读
  ssl  curl 
0

问题起因在访问https的网站时,报出Peer's Certificate has expired的错误。如下:[root@localhost ~]# curl https://www.baidu.com curl: (60) Peer's Certificate has expired. More details here: http:...

7年前发布  · 1716 次阅读