【问题标题】:SSL: :certify: ssl_handshake.erl:1507:Fatal error: certificate expiredSSL: :certify: ssl_handshake.erl:1507: 致命错误:证书过期
【发布时间】:2017-02-01 13:06:18
【问题描述】:

尝试通过运行:mix deps.get 来更新对 phoenix 应用程序的依赖项

唯一的粗壮是:

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,但这并没有帮助。

【问题讨论】:

    标签: ssl erlang elixir phoenix-framework


    【解决方案1】:

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

    【讨论】:

    • 谢谢,我假设执行date 会检查以确保它是正确的?如果是这样,它与现在的时间匹配。
    • @BillPiper123:你仍然收到同样的错误信息?
    • 是的,我没有改变任何东西
    • @BillPiper123:从系统中获取openssl s_client -connect repo.hex.pm:443 -servername repo.hex.pm 的完整输出以进一步调试问题会很有趣
    • 部分是verify error:num=20:unable to get local issuer certificate,我想这就是问题所在?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-18
    • 2019-12-11
    • 2014-01-23
    • 2014-10-14
    相关资源
    最近更新 更多