windows 安裝composer 報SSL錯誤的解決方式

http://curl.haxx.se/docs/caextract.html     下載證書  便可   而後在php.ini  改一下配置  php

windows8下運行php Composer出現ssl報錯的問題:
[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
----相似以上錯誤html

這是沒有安裝CA證書致使的!!!json

CA證書下載地址:http://curl.haxx.se/docs/caextract.htmlwindows

而後修改php.ini文件curl

openssl.cafile= D:/wamp/php/verify/cacert.pemurl

相關文章
相關標籤/搜索