Home > Development Tools > composer > Solve the problem of SSL error in php Composer

Solve the problem of SSL error in php Composer

藏色散人
Release: 2021-12-14 15:48:02
forward
4113 people have browsed it

This article is written by the tutorial column of composer to introduce how to solve the problem of SSL error when running php Composer under Windows. I hope it will be helpful to friends in need!

Solve the problem of SSL error in php Composer

Solution to the problem of SSL error when running php Composer under Windows:

SSL error when running composer under Windows:

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”
Copy after login

Caused by not installing the CA certificate! ! !

CA certificate download address:

http://curl.haxx.se/docs/caextract.html
Copy after login

Then modify the php.ini file

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

The above is the detailed content of Solve the problem of SSL error in php Composer. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:aliyun.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template