SSL certificate problem unable to get local issuer certificate解决办法

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

  1. 下载:ca-bundle.crtgit

  2. 将它放在本身的wamp或者xampp目录下,如 c:\wamp\ ca-bundle.crtgithub

  3. 在Apache中开启mod_ssl ,在php.ini开启php_openssl.dll
  4. 在php.ini文件中添加ca-bundle.crt的文件路径,如:服务器

    curl.cainfo="C:/wamp/ca-bundle.crt"
    openssl.cafile="C:/wamp/ca-bundle.crt"
  5. 重启Apache服务器curl

相关文章
相关标签/搜索