-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
SSL connect error when fetching crates from Win 8.1: schannel: initial InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE #9788
Comments
Btw, when I manually use the curl.exe from here to fetch this URL, it gives no SSL errors:
It also seems to work when I set it to use schannel:
This might be relevant?: https://docs.microsoft.com/en-us/windows/win32/secauthn/tls-cipher-suites-in-windows-8-1 Here it says:
|
Likely caused by rust-lang/rust#86874. It's hard to tell which change in libcurl might cause this, as there were a lot of TLS changes in 7.77. |
@Boscop We discussed this in today's @rust-lang/cargo meeting. We'd like some help tracking down the specific issue that changed here, so that we can evaluate what it would take to address it. If it's something straightforward to fix, we'd be happy to upgrade to a fixed version of a dependency to address this. If it's more fundamental or not straightforward to fix, we should talk about the amount of effort that should go into continuing to support host tools on Windows 8. @rustbot ping windows |
Error: The feature Please let |
Adding a note: I think this may get fixed in 7.78: curl/curl#7138 I think that is slated for around September 15th. That needs more investigation. |
Oh, I misread, 7.78 was already released a while ago. I have confirmed that it fixes the issue, and posed #9809 to fix it. |
Bump curl. This updates to the latest version of curl (7.78). 7.77 which is used in rust-lang/rust had an issue where it was failing in Windows 8. I have confirmed that 7.78 works correctly. Fixes rust-lang#9788
I discovered that this also affects Windows Server 2012 as it hit one of my jobs in CI that happened to be using that. |
I'm currently having the same problem pointed out by @ehuss on a Windows Server 2012 https://community-tc.services.mozilla.com/tasks/e8JaLE-UTGKHkiLtxsdfyg/runs/0/logs/public/logs/live_backing.log#L267 If there is another issue opened, sorry for this necroposting |
I tried install this https://support.microsoft.com/en-us/topic/update-adds-new-tls-cipher-suites-and-changes-cipher-suite-priorities-in-windows-8-1-and-windows-server-2012-r2-8e395e43-c8ef-27d8-b60c-0fc57d526d94 and |
@phanmn But how can I install the Microsoft update during CI run? May you provide me an example please? Thanks in advance! |
hi @Luni-4 I updated it manually on our Windows server 2012 |
Problem
cargo build
now fails to fetch my deps. It was working on this same Win 8.1 computer before I updated my rustup/nightly.It seems I get this error for each dependency.
Btw, when I go to the url
https://crates.io/api/v1/crates/addr2line/0.15.2/download
in chrome, it downloads theaddr2line-0.15.2.crate
file successfully!Notes
Output of
cargo version
:cargo 1.56.0-nightly (b51439fd8 2021-08-09)
It was working before I updated my nightly, on this same Win 8.1 computer!
I updated my rust-toolchain file from
nightly-2021-06-09
tonightly-2021-08-14
:Do you know how I can get it working with the latest nightly on Win 8.1? :)
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: