過去幾個月裏,我一直在做一些laravel開發,沒有任何問題。在Windows 10 Creator的更新之後,我一直無法獲得任何與OpenSSL相關的功能。它們都指向相同的錯誤代碼:1.在windows 10創建者的更新後,api.github.com無法正常工作
首先嚐試失敗就像簡單的東西:
laravel new blog
產生以下輸出
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 59 installs, 0 updates, 0 removals
- Installing doctrine/inflector (v1.1.0): Loading from cache
- Installing erusev/parsedown (1.6.2): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download erusev/parsedown from dist: The "https://api.github.com/repos/erusev/parsedown/zipball/1bf24f7334fe16c88bf9d467863309ceaf285b01" 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
Now trying to download from source
...並繼續在這樣的大多數的包
重新安裝php沒有幫助
我試着重新安裝PHP到一個新的版本7.1.5,而不是我目前的7.1.3(在創作者的更新之前工作)。
嘗試更新作曲家沒有解決它
我去重新安裝作曲家,並得到上面貼基本上是相同的錯誤,但只是一個單一的錯誤:
The "https://getcomposer.org/versions" 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
我不是當然,如果我允許Windows 10 Creator的更新破壞了所有這些,我就改變了一些設置。
任何幫助將不勝感激。
感謝您的快速反應。我不確定連接和信任存儲細節的含義。我從來沒有必須惹過這些之前。 PHP只是一直工作...你需要從我的php.ini文件的細節?你是否建議我運行一段代碼片段?再次感謝。 – htmlcssjsguy
@htmlcssjsguy - 答案在一般情況下提供(由於OpenSSL標籤,它出現在我的雷達中)。不幸的是,我不是一個PHP或Laravel的人,我不知道如何告訴PHP或Laravel做這三件事情。基於's_client'我知道他們工作。當我說你應該提供更多的細節時,請告訴我們你(或你使用的框架)是否使用SNI和TLS 1.0或更高;並且如果CA在信任存儲中。 – jww
@htmlcssjsguy - 順便說一句,我試圖檢查Windows 10預安裝* DigiCert SHA2高保證服務器CA *,但我找不到信息。它相當典型的微軟。他們的文檔非常糟糕。 Confer,[預裝「Windows 10」(https://www.google.com/search?q=「windows + 10」+預裝+ ca)。 – jww