SSL 连接错误 - 连接被对等重置 - 在 Homestead 机器上

SSL connection error - Connection reset by peer - On Homestead machine

我们有一个使用 reCAPTCHA 的应用程序,该应用程序在生产环境中运行没有问题,但在我的新开发 homestead 机器上,我收到以下错误:

file_get_contents(): SSL: Connection reset by peer

我在使用 composer 时也遇到了问题,出现以下错误:

[ErrorException]
zlib_decode(): data error

我认为这两个错误都与 SSL 有关。

我是否遗漏了什么,我必须手动配置 CACERTS 吗?

问题与提到的 VirtualBox 有关 here

将 OSX (Sierra 10.12.1) VirtualBox 从 5.1.8 降级到 5.1.6 后,问题解决了。