I am using a dockerfile to build an environment with Rust. I have been using this as a base.
Error:
Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to fetch `https://github.com/rust-lang/crates.io-index
It has previously functioned fine. What has changed to cause this?
Steps to reproduce -
Clone above repo and build via docker build -t "test:latest" /path/to/repo/
Edit, I added the verbose output and got the following:
Caused by:
[16/-17] The SSL certificate is invalid
I am seeing the same thing on Debian and on (Travis)[https://travis-ci.com/NetSys/NetBricks#L3392] with Rust nightly toolchain. This is not a problem when either using the nightly build from the 26th (through rustup default nightly-2016-11-26-x86_64-unknown-linux-gnu) or when using OS X.
Seems to have also happened to some of the builds for #3342 e.g.,
Dupe of #3340
Thanks guys. Trying to understand how to rectify. Can you help me with what action I should take?
As its fixed on master, I'd say you should wait until the next nightly, or alternatively, manually roll back the version on your travis setup. I see from reading the other issue that this workaround might fix it: https://github.com/rust-lang/cargo/issues/598#issuecomment-56089462
Thanking you.
Workaround - ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
Most helpful comment
Thanking you.
Workaround -
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt