过去几个月里,我一直在做一些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