Cargo is unable to download a file due to a SSL connect error

When Cargo tries to download a file, it gives the error [35] SSL connect error. I'm using Windows and I'm not using a proxy.

If I try to compile a project with cargo build, it returns the error:

 Downloading crypto-hash v0.2.1
error: unable to get packages from source

Caused by:
  [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - Il server di revoca � offline. La funzione richiamata non � in grado di completare il controllo di revoca.)

Is it a problem with curl? I found this article, but I don't know if I have to put some configuration in the .cargo\config file.

Following Marty's answer, this worked for me:

check-revoke = false

"SSL connect error" on Windows · Issue #2464 · rust-lang/cargo , mach build --release --verbose cargo build --release -v Downloading ur curl -​v -L > file * timeout In general the way cargo is surfacing connection related issues is really frustrating. [35] SSL connect error (schannel: next InitializeSecurityContext failed:  * Connected to ( port 443 (# 0) * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS alert, Server hello (2): * SSL certificate problem: unable to get local issuer certificate * Closing connection 0 curl: (60) SSL certificate problem: unable

SSL connect Error on Windows · Issue #1689 · rust-lang/cargo · GitHub, If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. On Windows Cargo uses curl-rust for HTTP downloads which is configured @zerterone that linked issue looks like it's related to timeouts? Can't update Twitter, HTTP Error #35 : SSL Connect Error #122. Interesting! It's always a fun time linking openssl :) The code in question for this sort of probe is in the openssl-sys crate which we then leverage in curl-rust by default.

Set the environmental variable CARGO_HTTP_CHECK_REVOKE=false. This worked for me. I did try to put the below setting in config but did not work;

http.check-revoke = false

I'm on Windows 10 x64, build 1903.

SSL connect error · Issue #7096 · rust-lang/cargo · GitHub, Problem Can't download any crates [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - The  A few weeks back an issue started on my pc which I can't get resolved: 1: Unable to open links in email messages in Outlook. 2: When I download a file from a website I get Cancelled : if I right click on the file in my download window & select retry it looks as if the file has downloaded but the options to open, open containing folder & Go to Download page are all blanked so I cannot click them.

You can prevent Cargo from checking for a revoked certificate with an option in ~\.cargo\config:

check-config = false

Cargo : SSL connect error - help, When Cargo tries to download a file, it gives the error [35] SSL connect error. I'm using Windows and I'm not using a proxy. If I try to compile a project with cargo  The client use default ssl GPO setting, so this is not the problem. The wireshark logs show some tcp retransmission issues, look like server side might not receive the packege correctly so that no server hello response in the server side during ssl handshake and dropped the connection. please check if there are firewalls or other devices issues

FAQ, file i.e (Home/.cargo/config) but after that it gives me error like failed to download failed to download package 'nanomsg v 0.4.0' That proxy breaks SSL open and you need to allow the proxy's root certificate $somehow. Harry November 3, 2015, 9:07am #3. for that what should i do …??? please. For Windows Users (and maybe others) has a guide that not only explains how to fix this problem, but also why so many people are having it: SSL Certificate Update The reason for the problem is switched to a more secure SSL certificate (SHA-2 which use 256bit encryption).

cargo dependency download force http? : rust, The plan for Cargo is to use, like npm or Rubygems do with including downloading from GitHub and copying packages into your package itself. Also remember that not everybody has a high-speed, low-latency Internet connection. If Cargo used all of the dependencies' Cargo.lock files, then multiple copies of​  When a client connects and initiates an SSL negotiation, HTTP.sys looks in its SSL configuration for the "IP:Port" pair to which the client connected. The HTTP.sys SSL configuration must include a certificate hash and the name of the certificate store before the SSL negotiation will succeed. The problem may be with the HTTP.SYS SSL Listener.

#56281 (MacOS 10.13.4 : Cargo port build failure about SSL and , Caused by: failed to download package byteorder v0.4.2 from Caused by: SSL connect error What is the difference between all of those, what do they do? system that can fetch dependencies from online tar files without using Cargo,  The stand-alone Adobe Connect application replaces the old add-in, and is compatible with Adobe Connect 9 and later versions. However, if you are an Adobe Connect 8 user, continue to use the add-in available at the Downloads and Updates page.

  • We're missing some important details: does that happen in any project? If not, which one? Can you download the same packages using another application?
  • Yes for any project, also if I try "cargo install racer"
  • Ok, probably is network/windows problem, but is it possible exclude this check? With curl there is --ssl-no-revoke flag
  • @MarcoAndreolli probably not (see my updates). You should not strive to disable SSL (or any security, really), instead, you should strive to fix the problem. SSL security is vitally important in the world today.
  • 1. I don't have a proxy, 2. I disable proxy and AntiVirus, 3. config seems don' do anything... but I don't know if I get the correct .pem file