Loading

composer 安装提示 PHP Warning: readfile(): SSL operation failed with code 1

这是php设置openssl 没有指定cacert.pem (证书)

第一步:下载 cacert.pem

文件下载地址

https://curl.haxx.se/docs/caextract.html

第二步:打开PHP配置文件php.ini

php.ini末尾加上一句

openssl.cafile= D:/phpStudy/cacert/cacert.pem

保存文件

重启服务器

ok 搞定

 

posted @ 2016-09-21 11:02  ZJH_BLOGS  阅读(2701)  评论(0编辑  收藏  举报