Mix hex.info certificate problem

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 :thinking:

āžœ  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

Can you try running mix local.hex? @kwando

Tried it before, but did it again. No success :pleading_face:

āžœ  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'}}}]}

This issue should be fixed now. https://hex.pm is no longer serving the expired root certificate.

2 Likes