Skip to content

HTTP/3: Improve user experience when TLS 1.3 is not enabled on Windows #55237

Closed

Description

@JamesNK

TLS 1.3 can be disabled via a registry key. If HTTP/3 is used on a machine that has a modern version of Windows that supports TLS 1.3, but 1.3 has been disabled, then HTTP/3 fails.

The error message isn't immediately helpful:

Message:
System.Net.Quic.QuicException : ConfigurationLoadCredential failed. Error Code: 0x80090331

Stack Trace:
Quic.dll:token 0x6000192+0x11
Quic.dll:token 0x60001dc+0x314
Quic.dll:token 0x60001da+0x0
Quic.dll:token 0x60000ec+0xb
Quic.dll:token 0x6000115+0x0
Quic.dll:token 0x6000064+0x6

Options:

  1. Add check for 1.3 to QuicImplementationProviders.MsQuic.IsSupported
  2. Throw a friendly error message when attempting to do QUIC.

How to disable:
https://social.technet.microsoft.com/Forums/windows/en-US/bcc6be0b-0385-4aff-82ae-b6e973fe398d/0x80090331-the-client-and-server-cannot-communicate-because-they-do-not-possess-a-common-algorithm

Activity

  1. ghost added
    untriaged
    on Jul 6, 2021
  2. removed
    untriaged
    on Jul 7, 2021
  3. added this to the 6.0.0 milestone on Jul 7, 2021
  4. ManickaP commented on Jul 7, 2021

    @ManickaP
    Member

    Triage: Seems reasonable, we should do it.

  5. wfurt commented on Jul 7, 2021

    @wfurt
    Member

    Seems like this this is platform OS error SEC_E_ALGORITHM_MISMATCH
    That looks windows specific. So as ability to disable protocol version.
    On Linux one can possibly disable all TLS1.3 algorithms.

    I'm wondering if we can add new status code and handle the differences in msquic pal @nibanks?

  6. nibanks commented on Jul 7, 2021

    @nibanks

    No, we don't have any better solution. We've talked with Schannel folks and this is what we're stuck with.

  7. karelz commented on Jul 15, 2021

    @karelz
    Member

    Triage: This is rare situation that someone disables explicitly TLS 1.3.
    As soon as we have decent message on OS which does NOT support TLS 1.3 on Windows, we can deal with it in .NET 7.
    Moving to 7.0

    Should be fairly straightforward to do - up-for-grabs.

  8. modified the milestones: 6.0.0, 7.0.0 on Jul 15, 2021
  9. added
    help wanted
    on Jul 15, 2021
  10. added
    enhancement
    on Oct 26, 2021
  11. hwoodiwiss commented on Feb 27, 2022

    @hwoodiwiss
    Contributor

    I'd be interested in picking this up, would someone mind assigning it to me?

  12. hwoodiwiss commented on Mar 1, 2022

    @hwoodiwiss
    Contributor

    So, coming back to the issue, I think I may have gotten the wrong end of stick with how I've worked on this, I've added a registry check for TLS being disabled.

    I'll open a PR so that what I've done so far is visible.

  13. ghost added
    in-pr
    on Mar 1, 2022
  14. ghost removed
    in-pr
    on Mar 29, 2022
  15. ghost locked as resolved and limited conversation to collaborators on Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Net.Quicenhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions