While trying an example from the tutorial (guessing game) after defining a dependency (rand="0.3.0"
) I got this:
$ cargo build --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
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] The SSL certificate is invalid
Added this to cargo registry git repo, but without success:
[http]
sslVerify = false
Where to dig?
An SSL certificate error occurs when the browser cannot verify the SSL certificates returned by the server. When the error happens, the browser blocks the website and warns the user that the website cannot be trusted as shown below. These warnings will negatively impact the user's trust in your website.
I ran into the same problem today and found that my $HOME/.gitconfig
had this:
[url "[email protected]:"]
insteadOf = https://github.com/
I had added this to make go get
to work over SSH for private repos. Commenting this out fixed the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With