SSL :: certify:ssl_handshake.erl:1507:致命错误:证书已过期

时间:2016-09-23 15:39:37

标签: ssl erlang elixir phoenix-framework

尝试通过运行mix deps.get

来更新凤凰应用程序的依赖项

唯一的STOUT是:

07:20:21.642 [error] SSL: :certify: ssl_handshake.erl:1507:Fatal error: certificate expired


07:20:21.674 [error] SSL: :certify: ssl_handshake.erl:1507:Fatal error: certificate expired

Registry update failed (http_error)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:tls_alert, 'certificate expired'}}]}
** (Mix) Failed to fetch registry

我用brew update更新了elixir和erlang,但这没有帮助。

1 个答案:

答案 0 :(得分:1)

由于repo.hex.pm的证书实际上并未过期但最近发布,因此错误消息可能是由于计算机上的错误时间造成的。因此,请确保您拥有系统上的当前时间并重试。