Skip to content
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

Can't download any crate #12273

Closed
MikeGreatLedger opened this issue Jun 15, 2023 · 2 comments
Closed

Can't download any crate #12273

MikeGreatLedger opened this issue Jun 15, 2023 · 2 comments
Labels
A-networking Area: networking issues, curl, etc. C-bug Category: bug O-windows OS: Windows

Comments

@MikeGreatLedger
Copy link

Problem

[35] SSL connect error (schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed). More detail may be available in the Windows System event log.)

Steps

  1. cargo install crate_name

Possible Solution(s)

This doesn't help:

  1. Adding [http] check-revoke = false into cargo.toml in the project folder
  2. Adding [env] CARGO_HTTP_CHECK_REVOKE = false in addition to [http] check-revoke = false into cargo.toml in the project folder
  3. Adding only [env] CARGO_HTTP_CHECK_REVOKE = false into cargo.toml in the project folder
  4. Adding [http] check-revoke = false into config (no extention) file in the users/username/.cargo folder
  5. Adding [http] check-revoke = false into config.toml file in the users/username/.cargo folder
  6. Adding [env] CARGO_HTTP_CHECK_REVOKE = false into config (no extention) file in the users/username/.cargo folder
  7. Adding [env] CARGO_HTTP_CHECK_REVOKE = false into config.toml file in the users/username/.cargo folder
  8. Adding both [http] and [env] into config.toml file or config w/o extention in the users/username/.cargo folder
  9. rustup update
  10. changing curl.exe path
  11. to use proxy

Firewall/antivirus are disabled

Notes

No response

Version

cargo 1.70.0 (ec8a8a0ca 2023-04-25)
release: 1.70.0
commit-hash: ec8a8a0cabb0e0cadef58902470f6c7ee7868bdc
commit-date: 2023-04-25
host: x86_64-pc-windows-msvc
libgit2: 1.6.3 (sys:0.17.0 vendored)
libcurl: 8.0.1-DEV (sys:0.4.61+curl-8.0.1 vendored ssl:Schannel)
os: Windows 6.1.7601 (Windows 7 Ultimate) [64-bit]
@MikeGreatLedger MikeGreatLedger added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Jun 15, 2023
@weihanglo
Copy link
Member

Copied from this #11344 (comment):

…this is a duplicate of #8688 and #7104. Windows, unlike all other platforms, defaults to checking for TLS revocation certificates. We have considered disabling that on Windows, but have not followed through. This might also be resolved if crates.io leaves Heroku and switches to a service that supports OCSP stapling.

I am also going to close. Thanks for the report anyway.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2023
@weihanglo weihanglo added O-windows OS: Windows A-networking Area: networking issues, curl, etc. and removed S-triage Status: This issue is waiting on initial triage. labels Jun 15, 2023
@weihanglo
Copy link
Member

See #12296 (comment) for the possible fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Area: networking issues, curl, etc. C-bug Category: bug O-windows OS: Windows
Projects
None yet
Development

No branches or pull requests

2 participants