rustup: Problem with installing rustup-rs on Windows
I have a problem with installing rustup.rs on my Windows machine at work.
Configuration: Windows 7 Enterprise x64 SP1
Version of rustup-init: rustup-init 0.2.0 (57f335a 2016-06-21)
My machine works behind a proxy so that’s can be a reason of the problem.
If I run ./rustup-init.exe I got following output:
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to 'C:\Users\oleg\.multirust\tmp\m51gbmnxzt7hj98l_file' info: caused by: http request returned failure: [35] SSL connect error
Command RUSTUP_USE_HYPER=1 ./rustup-init.exe produces:
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc' error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to 'C:\Users\oleg\.multirust\tmp\cshl3tis_w_u4t2b_file info: caused by: failed to make network request info: caused by: other os error info: caused by: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. (os error -2146762487)
Looks like I have to register some certificate.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 15 (3 by maintainers)
@HaronK I am also running Windows 7 Enterprise x64 at work. Here are the steps I took and I was able to get rustup to work.
I have the similar problem when I try run:
rustup install stable-msvcThe error is:
S.O.: Windows 7
RESOLVE: I open the url https://static.rust-lang.org on IExplorer and install the certificate
For my windows10, I add the https_proxy into system environment variables and resolve this issue: name: https_proxy value: http://xxx.xxx.com:port
This one works for linux too if you are on a proxy that is.
Yes, same for me. Cargo has a config file where I must add
http.check-revoke = falseand a proxy address e.g.http.proxy = "127.0.0.1:3128"to get it to work.It is urgently need in company environments with proxys with Microsofts NTLM auth. We can not change the company proxys, so please adapt the rust-tools. It took lots of months to get the revoke-option into cargo, so please rustup-team just learn from cargo…