2016-04-26 188 views
1

在嘗試清潔Drupal和項目依賴關係,作曲家與錯誤失敗:作曲錯誤:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:證書驗證失敗

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

這是一個無業遊民的CentOS 7箱發生。

回答

1

我找到了一個answer,建議您下載Mozilla CA certificate store並確保openssl.cafile在php.ini中設置,但這對我沒有任何作用。

我跑wget -v https://packagist.drupal-composer.org/packages.json來看看它從我的本地機器(它工作正常)和流浪箱中返回什麼。在漂浮的盒子產量爲:

--2016-04-24 09:08:30-- https://packagist.drupal-composer.org/packages.json 
Resolving packagist.drupal-composer.org... 147.75.205.69 
Connecting to packagist.drupal-composer.org|147.75.205.69|:443... connected. 
ERROR: cannot verify packagist.drupal-composer.org's certificate, issued by "/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3": 
    Issued certificate not yet valid. 
To connect to packagist.drupal-composer.org insecurely, use '--no-check-certificate'. 

這似乎很奇怪,我認爲證書是回來爲尚未生效,直到我意識到,在輸出的日期是關閉的2天(今天是04- 26,而不是04-24)。修復系統時鐘後,我重試並能夠下載所有依賴項。

相關問題