Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
henriquesati opened this issue Jun 9, 2024 · 4 comments
Closed

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

henriquesati opened this issue Jun 9, 2024 · 4 comments

Comments

@henriquesati
Copy link

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
Copy link
Member

ericmj commented Jun 9, 2024

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

@sotasan
Copy link

sotasan commented Jun 12, 2024

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

@sotasan
Copy link

sotasan commented Jun 12, 2024

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
Copy link
Member

ericmj commented Jun 18, 2024

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.

@ericmj ericmj closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants