错误例子如下:

php  cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决办法

 

php5.6以上的版本会出现这种问题

关于“SSL证书问题:无法获取本地颁发者证书”错误。很明显,这适用于发送CURL请求的系统(并且没有服务器接收请求)

1)从https://curl.haxx.se/ca/cacert.pem下载最新的cacert.pem

 下载好后放在自己php路径的extras目录中,例子如下:

php  cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决办法

2)将以下行添加到php.ini

例子如下:

php  cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决办法

 3) 重启php

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-07-25
  • 2021-07-14
猜你喜欢
  • 2021-06-09
  • 2021-12-03
  • 2022-12-23
  • 2021-07-22
  • 2021-10-12
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案