Skip to content

[ci-scan] Test failure: System.Net.Security.Tests.SslStream tests fail with "The remote certificate was rejected ..." #135096

Description

@lewing

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1619940
Build error leg or test failing: build_linux_x64_Debug_Mono_Interpreter_LibrariesTests-System.Net.Security.Tests
Pull request: #135033

KBE authoring guidance (ci-failure-scan)
  • Error Details is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
  • Build Analysis parses only the single JSON block under Error Message.
  • ErrorMessage is a case-sensitive ordinal String.Contains substring copied verbatim from the failing log.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

One case of the theory failed during the TLS handshake on linux-x64 Debug with the Mono interpreter, on Ubuntu.2604.Amd64.Open (test run net11.0-linux-Debug-x64-Mono_Interpreter_Debug, work item System.Net.Security.Tests). Of 5081 tests, 1 failed. The certificate validation callback rejected the remote certificate. The PR doesn't touch System.Net.Security or Mono; it changes only a WASI-specific path in Dns.cs.

#135041 reports the same exception in the same leg configuration (Mono interpreter, linux-x64 Debug) for a different test, SslStreamTls12NetworkConformanceTests.ReadAsync_ContinuesOnCurrentSynchronizationContextIfDesired. The two failures may share a root cause. #135041's ErrorMessage includes its own test name, so it doesn't match this failure.

Error Details

System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ZeroByteWrite_OtherDataReceivedSuccessfully(mode: AsyncMemory) [FAIL]
  System.Security.Authentication.AuthenticationException : The remote certificate was rejected by the provided RemoteCertificateValidationCallback.
  Stack Trace:
    /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs(700,0): at System.Net.Security.SslStream.CreateCertificateValidationException(SslAuthenticationOptions options, SslPolicyErrors sslPolicyErrors, X509ChainStatusFlags chainStatus)
    /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs(691,0): at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
    /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs(420,0): at System.Net.Security.SslStream.<ForceAuthenticationAsync>d__159`1[[System.AsyncReadWriteAdapter, System.Net.Security, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
    ...
    /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs(552,0): at System.Net.Security.SslStream.<ReceiveHandshakeFrameAsync>d__160`1[[System.AsyncReadWriteAdapter, System.Net.Security, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()

Error Message

{
  "ErrorMessage": [
    "System.Net.Security.Tests.SslStream",
    "System.Security.Authentication.AuthenticationException : The remote certificate was rejected by the provided RemoteCertificateValidationCallback."
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 1 hits in failure.log

Note

This issue was drafted with the help of GitHub Copilot.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1619940
Error message validated: [System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ZeroByteWrite_OtherDataReceivedSuccessfully System.Security.Authentication.AuthenticationException : The remote certificate was rejected by the provided RemoteCertificateValidationCallback.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/2/2026 12:54:17 PM UTC

Report

Build Repository Test Pull Request
1619940 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ZeroByteWrite_OtherDataReceivedSuccessfully #135033

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 1

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1619940
Error message validated: [System.Net.Security.Tests.SslStream System.Security.Authentication.AuthenticationException : The remote certificate was rejected by the provided RemoteCertificateValidationCallback.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/5/2026 5:56:27 AM UTC

Report

Build Repository Test Pull Request
1619940 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ZeroByteWrite_OtherDataReceivedSuccessfully #135033

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 1

Report

Build Repository Test Pull Request
1630887 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.ArgumentValidation_ThrowsExpectedException
1630832 dotnet/runtime System.Net.Security.Tests.SslStreamTlsResumeTests.ClientCert_DefaultValue_ResumeSucceeds #135549
1630531 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_ShutdownAcrossConnections_DoesNotCorruptHeap #135555
1630506 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadWrite_CustomMemoryManager_Success #135548
1630415 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.Read_Eof_Returns0 #135520
1630349 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Async.SslStream_StreamToStream_Alpn_Success #135475
1630093 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.ZeroByteWrite_OtherDataReceivedSuccessfully #135520
1628976 dotnet/runtime System.Net.Security.Tests.SslStreamTlsResumeTests.ClientCert_DefaultValue_ResumeSucceeds #135460
1629933 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadWrite_Success #135514
1629830 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ZeroByteRead_PerformsZeroByteReadOnUnderlyingStreamWhenDataNeeded #135275
1629814 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.ReadWrite_Success #135488
1629633 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadWrite_MessagesSmallerThanReadBuffer_Success #135482
1629377 dotnet/runtime System.Net.Security.Tests.SslStreamTlsResumeTests.ClientCert_DefaultValue_ResumeSucceeds #135477
1628766 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.Dispose_ClosesInnerStreamIfDesired #135410
1628552 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ZeroByteWrite_OtherDataReceivedSuccessfully #135335
1628488 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadWrite_Success #135438
1628124 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Async.SslStream_StreamToStream_Alpn_Success #133606
1627706 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.ReadWrite_Success
1627663 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.Read_Eof_Returns0 #135167
1627631 dotnet/runtime System.Net.Security.Tests.SslStreamMutualAuthenticationTest.SslStream_NegotiateClientCertificate_IsMutuallyAuthenticatedCorrect #135410
1627553 dotnet/runtime System.Net.Security.Tests.SslStreamTlsResumeTests.DifferentHost_NoResume #135408
1627081 dotnet/runtime System.Net.Security.Tests.SslStreamMemoryConformanceTests.ReadAsync_ContinuesOnCurrentSynchronizationContextIfDesired #135371
1627077 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Async.SslStream_StreamToStream_Alpn_Success #135370
1626997 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_ShutdownAcrossConnections_DoesNotCorruptHeap #135250
1626853 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.ReadWrite_MessagesSmallerThanReadBuffer_Success #135362
1626830 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.Read_Eof_Returns0 #135360
1626776 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.ReadWrite_MessagesSmallerThanReadBuffer_Success #135356
1626743 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadWrite_Success #135355
1626740 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.Write_DataReadFromDesiredOffset #134883
1626626 dotnet/runtime System.Net.Security.Tests.SslStreamMemoryConformanceTests.Flush_FlushesUnderlyingStream #135286
1626526 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.Read_Eof_Returns0 #135342
1626454 dotnet/runtime System.Net.Security.Tests.SslStreamTlsResumeTests.ClientCert_DefaultValue_ResumeSucceeds #134418
1626278 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Async.SslStream_StreamToStream_Alpn_Success #135032
1626222 dotnet/runtime System.Net.Security.Tests.SslStreamMemoryConformanceTests.Flush_FlushesUnderlyingStream #135321
1625804 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Async.SslStream_StreamToStream_Alpn_Success #135322
1625782 dotnet/runtime System.Net.Security.Tests.SslStreamMemoryConformanceTests.ReadWrite_MessagesSmallerThanReadBuffer_Success #135320
1625684 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadWrite_Success #135286
1625616 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.ReadWrite_Success #135065
1625482 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Sync.SslStream_StreamToStream_Alpn_Success #133570
1625338 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_ShutdownAcrossConnections_DoesNotCorruptHeap #135302
1625290 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_ShutdownAcrossConnections_DoesNotCorruptHeap #134167
1625261 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Async.SslStream_StreamToStream_Alpn_Success #132358
1625177 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Sync.SslStream_StreamToStream_Alpn_Success #135287
1625077 dotnet/runtime System.Net.Security.Tests.SslStreamTlsResumeTests.ClientCert_DefaultValue_ResumeSucceeds #131652
1624843 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadAsync_ContinuesOnCurrentTaskSchedulerIfDesired #135272
1624541 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadWrite_Success #134025
1624439 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.Dispose_ClosesStream #135160
1624118 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_SyncParameters.Write_CorrectlyUnlocksAfterFailure #133819
1624038 dotnet/runtime System.Net.Security.Tests.SslStreamMemoryConformanceTests.ReadWrite_MessagesSmallerThanReadBuffer_Success #132584
1623805 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ReadAsync_ContinuesOnCurrentTaskSchedulerIfDesired #135132
1623549 dotnet/runtime System.Net.Security.Tests.SslStreamAlpnTest_Async.SslStream_StreamToStream_Alpn_Success #135224
1623524 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.ReadWrite_Success #135208
1623480 dotnet/runtime System.Net.Security.Tests.SyncSslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok #135216
1623034 dotnet/runtime System.Net.Security.Tests.SslStreamTls12NetworkConformanceTests.Write_DataReadFromDesiredOffset #135196
1622931 dotnet/runtime System.Net.Security.Tests.SslStreamTlsResumeTests.ClientCert_DefaultValue_ResumeSucceeds #135160
1619940 dotnet/runtime System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ZeroByteWrite_OtherDataReceivedSuccessfully #135033

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 55 56

Activity

  1. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Oct 2, 2026
  2. dotnet-policy-service commented on Oct 2, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
    See info in area-owners.md if you want to be subscribed.

  3. changed the title [-][ci-scan] Test failure: System.Net.Security.Tests.SslStreamTls13NetworkConformanceTests.ZeroByteWrite_OtherDataReceivedSuccessfully[/-] [+][ci-scan] Test failure: System.Net.Security.Tests.SslStream tests fail with "The remote certificate was rejected ..."[/+] on Oct 5, 2026
  4. jkotas commented on Oct 5, 2026

    @jkotas
    Member

    Generalized the pattern match to cover all System.Net.Security.Tests.SslStream tests

  5. added this to the 12.0.0 milestone on Oct 5, 2026
  6. added theissue type on Oct 5, 2026
  7. removed
    untriagedNew issue has not been triaged by the area owner
    on Oct 5, 2026
  8. self-assigned this
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Net.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions