<legend id='3FnbJ'><style id='3FnbJ'><dir id='3FnbJ'><q id='3FnbJ'></q></dir></style></legend>

    <small id='3FnbJ'></small><noframes id='3FnbJ'>

    <tfoot id='3FnbJ'></tfoot>
  • <i id='3FnbJ'><tr id='3FnbJ'><dt id='3FnbJ'><q id='3FnbJ'><span id='3FnbJ'><b id='3FnbJ'><form id='3FnbJ'><ins id='3FnbJ'></ins><ul id='3FnbJ'></ul><sub id='3FnbJ'></sub></form><legend id='3FnbJ'></legend><bdo id='3FnbJ'><pre id='3FnbJ'><center id='3FnbJ'></center></pre></bdo></b><th id='3FnbJ'></th></span></q></dt></tr></i><div id='3FnbJ'><tfoot id='3FnbJ'></tfoot><dl id='3FnbJ'><fieldset id='3FnbJ'></fieldset></dl></div>
        <bdo id='3FnbJ'></bdo><ul id='3FnbJ'></ul>

        从 packagegist 更新时 Composer 更新失败

        时间:2024-04-12
      1. <tfoot id='7wC3b'></tfoot>

                <bdo id='7wC3b'></bdo><ul id='7wC3b'></ul>
                  <tbody id='7wC3b'></tbody>

                <i id='7wC3b'><tr id='7wC3b'><dt id='7wC3b'><q id='7wC3b'><span id='7wC3b'><b id='7wC3b'><form id='7wC3b'><ins id='7wC3b'></ins><ul id='7wC3b'></ul><sub id='7wC3b'></sub></form><legend id='7wC3b'></legend><bdo id='7wC3b'><pre id='7wC3b'><center id='7wC3b'></center></pre></bdo></b><th id='7wC3b'></th></span></q></dt></tr></i><div id='7wC3b'><tfoot id='7wC3b'></tfoot><dl id='7wC3b'><fieldset id='7wC3b'></fieldset></dl></div>
              • <small id='7wC3b'></small><noframes id='7wC3b'>

                <legend id='7wC3b'><style id='7wC3b'><dir id='7wC3b'><q id='7wC3b'></q></dir></style></legend>

                • 本文介绍了从 packagegist 更新时 Composer 更新失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在执行 composer install/update 时,我从 openssl 收到以下错误:

                  While executing composer install/update I have got the following error from openssl:

                  无法下载https://packagist.org/packages.json"文件:SSL 操作失败,代码为 1.OpenSSL 错误消息:错误:14090086:SSL 例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败无法启用加密无法打开流:操作失败https://packagist.org 无法完全加载,包信息是从本地缓存加载的,可能已过期

                  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 https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

                  我正在使用:

                  1. PHP 5.6.3 (cli)(构建时间:2014 年 11 月 17 日 15:16:53)
                  2. XAMPP 堆栈 5.6.3-0
                  3. ubuntu 14.04

                  作曲家诊断显示:

                  Checking composer.json: OK
                  Checking platform settings: OK
                  Checking git settings: OK
                  Checking http connectivity: FAIL
                  [ComposerDownloaderTransportException] 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
                  Checking disk free space: OK
                  Checking composer version: 
                  

                  [ComposerDownloaderTransportException]
                  无法下载https://getcomposer.org/version"文件:SSL 操作失败,代码为 1.OpenSSL 错误消息:
                  错误:14090086:SSL 例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败
                  启用加密失败
                  无法打开流:操作失败

                  [ComposerDownloaderTransportException]
                  The "https://getcomposer.org/version" 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

                  php -r 'var_dump(openssl_get_cert_locations());'显示:

                  php -r 'var_dump(openssl_get_cert_locations());' shows:

                  array(8) {
                  ["default_cert_file"]=>
                  string(33) "/opt/lampp/share/openssl/cert.pem"
                  ["default_cert_file_env"]=>
                  string(13) "SSL_CERT_FILE"
                  ["default_cert_dir"]=>
                  string(30) "/opt/lampp/share/openssl/certs"
                  ["default_cert_dir_env"]=>
                  string(12) "SSL_CERT_DIR"
                  ["default_private_dir"]=>
                  string(32) "/opt/lampp/share/openssl/private"
                  ["default_default_cert_area"]=>
                  string(24) "/opt/lampp/share/openssl"
                  ["ini_cafile"]=>
                  string(0) ""
                  ["ini_capath"]=>
                  string(0) ""
                  }
                  

                  对于 php 5.5.19 一切正常.

                  For php 5.5.19 everything is Ok.

                  推荐答案

                  我找到了解决方案

                  我正在跑步:
                  FreeBSD 10.1
                  Apache2.4
                  PHP 5.6.3

                  I'm running:
                  FreeBSD 10.1
                  Apache2.4
                  PHP 5.6.3

                  为了找到 CA 文件,我运行了这个命令

                  To find the CA file I ran this command

                  <代码>>找到 cacert.pem

                  结果是:
                  /usr/local/lib/perl5/site_perl/5.16/Mozilla/CA/cacert.pem

                  Result was:
                  /usr/local/lib/perl5/site_perl/5.16/Mozilla/CA/cacert.pem

                  然后打开 php.ini 文件并
                  改变这个:

                  Then open the php.ini file and
                  change this:

                  ;openssl.cafile=

                  ;openssl.cafile=

                  对此:

                  openssl.cafile=/usr/local/lib/perl5/site_perl/5.16/Mozilla/CA/cacert.pem

                  openssl.cafile=/usr/local/lib/perl5/site_perl/5.16/Mozilla/CA/cacert.pem

                  注意:该指令仅适用于 php 5.6.x

                  Note: This directive is only available on php 5.6.x

                  然后重启Apache

                  这篇关于从 packagegist 更新时 Composer 更新失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:“无法打开进程"正在使用 XAMPP 端口 80PID 4 下一篇:Mac OSX PHP 和 XAMPP 路径问题

                  相关文章

                  <legend id='KEkjL'><style id='KEkjL'><dir id='KEkjL'><q id='KEkjL'></q></dir></style></legend>
                  <i id='KEkjL'><tr id='KEkjL'><dt id='KEkjL'><q id='KEkjL'><span id='KEkjL'><b id='KEkjL'><form id='KEkjL'><ins id='KEkjL'></ins><ul id='KEkjL'></ul><sub id='KEkjL'></sub></form><legend id='KEkjL'></legend><bdo id='KEkjL'><pre id='KEkjL'><center id='KEkjL'></center></pre></bdo></b><th id='KEkjL'></th></span></q></dt></tr></i><div id='KEkjL'><tfoot id='KEkjL'></tfoot><dl id='KEkjL'><fieldset id='KEkjL'></fieldset></dl></div>
                    <tfoot id='KEkjL'></tfoot>
                    • <bdo id='KEkjL'></bdo><ul id='KEkjL'></ul>

                    <small id='KEkjL'></small><noframes id='KEkjL'>