Local HTTPS connection fails on Windows with .NET 10.0.15

Maik Wehlert 0 Reputation points
2026-12-03T23:34:12.2966667+00:00

Hello,

We are developing a .NET desktop application and have encountered a connection problem in an isolated local test environment on Windows 11 x64, using .NET 10.0.15.

The local HTTPS connection fails during establishment on Windows, whereas the corresponding Linux tests passed. The Windows test reports an AuthenticationException or IOException. Local certificate validation has not been disabled.

We have not established whether the issue originates in our test environment, Windows, or the .NET runtime.

Could you recommend the appropriate official support channel and the non-sensitive diagnostic information needed to investigate this issue while preserving standard TLS security?

Thank you.

Developer technologies | .NET | .NET Runtime
0 comments No comments

2 answers

Sort by: Oldest
  1. Nguyen Dam (WICLOUD CORPORATION) 1,910 Reputation points Microsoft External Staff Moderator
    2026-12-04T03:03:40.6766667+00:00

    Hello @Maik Wehlert , and thank you for reaching out. 

    Since your issue involves a local HTTPS connection failure on Windows, it may be related to either the .NET runtime or the underlying Windows TLS implementation (Schannel). Unlike Linux, which uses OpenSSL, .NET on Windows relies on Schannel for TLS operations. Given this distinction and the fact that the responsible component has not yet been identified, the following official support channels would be appropriate: 

    • Microsoft Support: Suitable if you need assisted investigation into the failure, particularly when it is unclear whether the cause lies in Windows or .NET. The linked page provides the official support options for .NET 10. 
    • .NET Runtime GitHub Issues: Suitable for reporting a suspected .NET runtime issue, particularly if you can provide a minimal reproducible example. 

    Regarding non-sensitive diagnostic information, the following would be useful for the investigation: 

    • The exact exception message, including inner exceptions and the relevant stack trace. 
    • The Windows 11 version and OS build, along with the .NET runtime version reported by dotnet --info. 
    • The API used to establish the connection, such as HttpClient or SslStream. 
    • Whether the failure occurs consistently and can be reproduced with a minimal sample. 
    • Any related Schannel events from Event Viewer > Windows Logs > System, including their event IDs and error codes. 

    Before sharing diagnostic information publicly, please remove any credentials, private keys, certificate passwords, or sensitive network details. If additional sensitive diagnostic data is required, it should be shared through an appropriate private support channel. 

    I hope this helps clarify the appropriate next steps. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation. Thank you. 

    Was this answer helpful?

    0 comments No comments

  2. Вячеслав Краковский 0 Reputation points
    2026-12-04T12:15:13.1866667+00:00

    I hit something very similar a while ago. On Windows .NET uses Schannel for TLS, while on Linux it is OpenSSL, so a test that passes on Linux can still fail on Windows. Before opening a ticket I'd check these four things, they cover most cases:

    1. Look at the InnerException of the AuthenticationException. If it is a Win32Exception with 0x8009030E ("No credentials are available in the security package"), the server certificate has an ephemeral private key, which is typical when it is loaded with X509Certificate2.CreateFromPem. Schannel can't use those keys. Re-import it as PFX, for example: X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pfx), null).
    2. Make sure the issuing CA is in the Windows certificate store. Linux tests often trust it through a file or an environment variable that Windows doesn't see.
    3. Check that the host name you connect to matches the certificate SAN. localhost vs 127.0.0.1 catches a lot of people.
    4. For diagnostics without turning validation off: enable Schannel event logging, or collect the System.Net.Security events with dotnet-trace.

    The official troubleshooting page covers the ephemeral key case and the trust store: https://learn.microsoft.com/en-us/dotnet/core/extensions/sslstream-troubleshooting

    If it still fails, paste the inner exception text here and I'll take a look.

    Drafted with AI assistance and checked against the documentation.

    Happy to help further: (irrelevant content removed)

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.