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

fail to build cargo behind proxy #1771

Closed
Jfromchina opened this issue Jun 30, 2015 · 3 comments
Closed

fail to build cargo behind proxy #1771

Jfromchina opened this issue Jun 30, 2015 · 3 comments

Comments

@Jfromchina
Copy link

I am trying to build cargo from source behind a proxy, It tells like this:

$ cargo build --verbose
Updating registry https://github.com/rust-lang/crates.io-index
failed to fetch https://github.com/rust-lang/crates.io-index

Caused by:
[12] SSL error: error:140E0114:SSL routines:SSL_shutdown:uninitialized

I have configed environment variables like this:
export HTTP_PROXY=proxy.example.com:8000
export HTTPS_PROXY=proxy.example.com:8000
export FTP_PROXY=proxy.example.com:8000

there is no config file under .cargo dir,does it because of this? what can I do next? By the way, dose the git need to config either? how? I am a new user for Rust, thanks a lot!

@alexcrichton
Copy link
Member

Does curl work for you behind the proxy? Is the proxy trying to do some funny SSL business? If the proxy is trying to give you an invalid certificate then this is likely to happen. Lots more info can be found in #636

@pnkfelix
Copy link
Member

pnkfelix commented Jul 9, 2015

I spoke to @Jfromchina in person; he (or we) think fixing #1180 would address this. (By "fixing" I mean adding the suggested config setting in the Cargo.toml)

@alexcrichton
Copy link
Member

Ok, in that case I'm going to close this in favor of that

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