Skip to content

Cargo Nightly(3568be9 2016-11-26) fails to update the registry: SSL certificate is invalid #3370

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

Closed
lilianmoraru opened this issue Dec 5, 2016 · 1 comment

Comments

@lilianmoraru
Copy link

Cargo nightly cargo 0.16.0-nightly (3568be9 2016-11-26) fails to update the registry when running cargo update.
After trying ~10 times, I ran rustup run stable cargo update and it worked(on stable).

Here is the log on another Rust application:

RUST_LOG=debug cargo update --verbose                                            9:23:43
DEBUG:cargo::update: executing; cmd=cargo-update; args=["/home/lilian/.multirust/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo", "update", "--verbose"]
DEBUG:cargo::core::workspace: find_root - trying /home/lilian/Git/Cargo.toml
DEBUG:cargo::core::workspace: find_root - trying /home/lilian/Cargo.toml
DEBUG:cargo::core::workspace: find_root - trying /home/Cargo.toml
DEBUG:cargo::core::workspace: find_root - trying /Cargo.toml
DEBUG:cargo::core::workspace: find_members - only me as a member
DEBUG:cargo::core::registry: load/missing  file:///home/lilian/Git/imgui-rs
DEBUG:cargo::sources::config: loading: file:///home/lilian/Git/imgui-rs
DEBUG:cargo::core::resolver: initial activation: imgui v0.1.0-pre (file:///home/lilian/Git/imgui-rs)
DEBUG:cargo::core::registry: load/missing  registry https://github.com/rust-lang/crates.io-index
DEBUG:cargo::sources::config: loading: registry https://github.com/rust-lang/crates.io-index
    Updating registry `https://github.com/rust-lang/crates.io-index`
DEBUG:cargo::sources::registry::remote: attempting github fast path for https://github.com/rust-lang/crates.io-index
DEBUG:cargo::sources::registry::remote: fast path failed, falling back to a git fetch
DEBUG:cargo: handle_error; err=CliError { error: Some(ChainedError { error: failed to load source for a dependency on `glium`, cause: ChainedError { error: Unable to update registry https://github.com/rust-lang/crates.io-index, cause: ChainedError { error: failed to fetch `https://github.com/rust-lang/crates.io-index`, cause: Error { code: -17, klass: 16, message: "The SSL certificate is invalid" } } } }), unknown: false, exit_code: 101 }
error: failed to load source for a dependency on `glium`

Caused by:
  Unable to update registry https://github.com/rust-lang/crates.io-index

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  [16/-17] The SSL certificate is invalid
@lilianmoraru lilianmoraru changed the title Cargo Nightly(3568be9 2016-11-26) failes to update the registry: SSL certificate is invalid Cargo Nightly(3568be9 2016-11-26) fails to update the registry: SSL certificate is invalid Dec 5, 2016
@alexcrichton
Copy link
Member

Thanks for the report! I believe this is #3340 which is now being tracked for rustup at rust-lang/rustup#844

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

2 participants