windows下通过证书的方式进行curl请求https链接失败,怎么办

windows下通过证书的方式进行curl请求https链接失败,提示如下:

error setting certificate verify locations:
  CAfile: E:\phpStudy\cacert.pem
  CApath: none

E:phpStudycacert.pem 文件存在,请问怎么解决?

阅读 5.5k
1 个回答

win下面php的curl请求https站点,需要设置证书。
放到目录,比如d:/ssl/cacert.pem,再重启web服务器。
网上下载地址:https://curl.haxx.se/docs/cae...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题