[Composer\Downloader\TransportException]
The "http://packagist.org/p/laravel/laravel$745fa4e5f0a1485878f0b4c5be5cf26
a9e5d68243751f3c34acbd8bf3766065d.json" file could not be downloaded: SSL o
peration 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
对于那个问题,我正在尝试多种解决方案,但结果仍为零。我想分享一个用于SSL问题的方法。我在下面的方法中获得了一些网站,以及在php.ini文件中添加以下代码的指南。
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo ="/Applications/XAMPP/xamppfiles/etc/cacert.pem"
[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
openssl.cafile="/Applications/XAMPP/xamppfiles/etc/cacert.pem"
但这种方法也行不通。任何人都可以帮助我如何解决这个问题。感谢
答案 0 :(得分:0)
运行该命令并解决您的问题,我自己修复了
%s
我还使用PHP 5.6.24在MacOs sierra上