解决php Composer出现SSL报错问题

藏色散人
藏色散人 转载
2021-12-14 15:48:02 3224浏览

本文由composer教程栏目给大家介绍如何解决Windows下运行php Composer出现SSL报错的问题,希望对需要的朋友有所帮助!

解决Windows下运行php Composer出现SSL报错的问题:

在windows下运行composer却出现SSL报错:

E:\www>php -f composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
SSL certificate problem, verify that the CA cert is OK. Details: 
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed”

没有安装CA证书导致的!!!

CA证书下载地址:

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

然后修改php.ini文件

openssl.cafile= D:/xampp/php-5.6/cacert.pem

以上就是解决php Composer出现SSL报错问题的详细内容,更多请关注php中文网其它相关文章!

声明:本文转载于:aliyun,如有侵犯,请联系admin@php.cn删除