最新消息: 新版网站上线了!!!

windows下composer ssl 错误

C:\Users\routes>composer global require "laravel/installer=~1.1"
Changed current directory to C:/Users/routes/AppData/Roaming/Composer
./composer.json has been updated
Loading composer repositories with package information
 
 
 
  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: SSL
   operation failed with code 1. OpenSSL Error messages:
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
  failed
  Failed to enable crypto
  failed to open stream: operation failed

下载

http://curl.haxx.se/ca/cacert.pem

 

在php.ini加入

openssl.cafile= E:\xampp\php\cacert.pem


转载请注明:谷谷点程序 » windows下composer ssl 错误