I think this is a very common problem among those who want to use Cargo with Windows at work; I saw several GitHub questions and related posts, but none of the answers resolved my problems.
Whenever I try to create code pointing to the crates.io box, I get the following error:
Downloading <package> error: unable to get packages from source Caused by: failed to download package <package> from <package address> Caused by: SSL connect error
What can I do to fix this? I know that Cargo can use the settings in .cargo/config and that proxy data can be included there, but for me this does not work, with or without the certificate path (I used the one that was distributed using curl) as shown below:
[http] proxy = "http://user: password@proxy-address.xyz :port" cainfo = "cert.pem" [https] proxy = "https://user: password@proxy-address.xyz :port" cainfo = "cert.pem"
The proxy specified in the configuration file works for any other purpose.
I use Windows 7 64bit, Rust 1.11 GNU and Cargo bundled with it. How can I make this work? Currently, I have to resort to manually loading the box sources from my repositories and specifying paths = [...] for each of them in the Cargo configuration file.
source share