Unable to Install Hex Packages

Hi,

As I mentioned in this post I’m unable to install any packages from Hex.

In trying to debug, I ran: openssl s_client -connect repo.hex.pm:443 -servername repo.hex.pm. Here’s a snippet from the response:

---
Certificate chain
 0 s:CN = repo.hex.pm
   i:C = BE, O = GlobalSign nv-sa, CN = GlobalSign Atlas R3 DV TLS CA 2023 Q2
   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
   v:NotBefore: Jul  2 01:48:39 2023 GMT; NotAfter: Aug  2 01:48:38 2024 GMT
 1 s:C = BE, O = GlobalSign nv-sa, CN = GlobalSign Atlas R3 DV TLS CA 2023 Q2
   i:OU = GlobalSign Root CA - R3, O = GlobalSign, CN = GlobalSign
   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
   v:NotBefore: Jan 18 03:36:52 2023 GMT; NotAfter: Jan 18 00:00:00 2025 GMT
---

Does the problem have anything to do with: NotAfter: Aug 2 01:48:38 2024 GMT?
How can I fix the problem?

PS: I’m running on a x64 Windows PC.

This is 2024, so next year. That should be fine as is.

Nice catch! Read it as having expired yesterday :sweat_smile:

Do you have any clue what the issue could be @LostKobrakai?

For context, here’s the exact error I’m getting:

** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {~c"builds.hex.pm", 443}}, {:inet, [:inet], {:tls_alert, {:unknown_ca, ~c"TLS client: In state wait_cert_cr at ssl_handshake.erl:2138 generated CLIENT ALERT: Fatal - Unknown CA\n"}}}]}
1 Like