kwando
1
There seems to be a problem with the certificates when running mix hex.info <package>
.
Any ideas on what the problem is? It looks like the cert is expired
ā projects git:(master) ā mix hex.info ecto
21:21:53.464 [info] TLS :client: In state :certify at ssl_handshake.erl:1882 generated CLIENT ALERT: Fatal - Certificate Expired
Failed to retrieve package information
{:failed_connect, [{:to_address, {'hex.pm', 443}}, {:inet, [:inet], {:tls_alert, {:certificate_expired, 'TLS client: In state certify at ssl_handshake.erl:1882 generated CLIENT ALERT: Fatal - Certificate Expired\n'}}}]}
ā projects git:(master) ā
Iām on OS X 11.6 with Erlang/Elixir installed via asdf.
ā projects git:(master) ā mix hex.info
Hex: 0.21.3
Elixir: 1.12.3
OTP: 24.0.3
Built with: Elixir 1.12.3 and OTP 22.3
sergio
2
Can you try running mix local.hex
? @kwando
kwando
3
Tried it before, but did it again. No success
ā projects git:(master) ā mix local.hex --force
* creating /Users/kwando/.asdf/installs/elixir/1.12.3-otp-24/.mix/archives/hex-0.21.3
ā projects git:(master) ā mix hex.info ecto
21:33:29.807 [info] TLS :client: In state :certify at ssl_handshake.erl:1882 generated CLIENT ALERT: Fatal - Certificate Expired
Failed to retrieve package information
{:failed_connect, [{:to_address, {'hex.pm', 443}}, {:inet, [:inet], {:tls_alert, {:certificate_expired, 'TLS client: In state certify at ssl_handshake.erl:1882 generated CLIENT ALERT: Fatal - Certificate Expired\n'}}}]}
ericmj
4
This issue should be fixed now. https://hex.pm is no longer serving the expired root certificate.
2 Likes