Home >Backend Development >PHP Tutorial >windows下通过证书的方式进行curl请求https链接失败,怎么办

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:07:171764browse

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

<code>error setting certificate verify locations:
  CAfile: E:\phpStudy\cacert.pem
  CApath: none</code>

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

回复内容:

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

<code>error setting certificate verify locations:
  CAfile: E:\phpStudy\cacert.pem
  CApath: none</code>

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn