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

Solve the problem of SSL error in php Composer

藏色散人
藏色散人forward
2021-12-14 15:47:434063browse

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”

Caused by not installing the CA certificate! ! !

CA certificate download address:

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

Then modify the php.ini file

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

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!

Statement:
This article is reproduced at:aliyun.com. If there is any infringement, please contact admin@php.cn delete