hexpm / hex

Package manager for the Erlang ecosystem.
https://hex.pm
961 stars 184 forks source link

failed to load system certificates when trying to download Hex #1041

Closed henriquesati closed 1 month ago

henriquesati commented 1 month ago

Trying to download Hex on windows, but getting "warning: failed to load system certificates. SSL peer verification will be skipped but downloads are still verified with a checksum" Erlang TOP -v 26 Elixir 1.16.3

ericmj commented 1 month ago

What command are you running? Please include the full output of the command.

sotasan commented 1 month ago

I get the same error when trying to run mix or just opening VS Code with the ElixirLS extension.

sotasan commented 1 month ago

Here is the full output:

>mix 
Mix requires the Hex package manager to fetch dependencies
Shall I install Hex? (if running non-interactively, use "mix local.hex --force") [Yn]   
warning: failed to load system certificates. SSL peer verification will be skipped but downloads are still verified with a checksum
** (Mix) request timed out after 60000ms

Could not install Hex because Mix could not download metadata at https://builds.hex.pm/installs/hex-1.x.csv.

Alternatively, you can compile and install Hex directly with this command:

    $ mix archive.install github hexpm/hex branch latest
ericmj commented 1 month ago

There seems to be an issue loading the OS certificates on Windows, this is an Erlang issue so there isn't much we can do from here.

Please run public_key:cacerts_load(). inside an erl shell to capture the result and report the issue to https://github.com/erlang/otp.