Closed
Description
There are severeal SslStream test failures on Mac which seem to be similar to the Windows failures tracked by #29683 (same tests failing with an exception coming from the PAL)
Tests:
System.Net.Security.Tests.SslStreamNetworkStreamTest
SslStream_TargetHostName_Succeeds
SslStream_NestedAuth_Throws
SslStream_RandomSizeWrites_OK
Failures 6/13-8/13 (incl. PRs):
Day | Run | OS |
---|---|---|
6/17 | Official run | OSX.1013.Amd64.Open |
6/18 | Official run | OSX.1013.Amd64.Open - Mono |
6/23 | PR #54621 | OSX.1015.Amd64.Open |
7/2 | PR #54063 | OSX.1013.Amd64.Open |
7/12 | PR #55220 | OSX.1015.Amd64.Open - Mono |
7/16 | PR #55785 | OSX.1015.Amd64.Open |
8/4 | PR #54640 | OSX.1014.Amd64.Open |
8/5 | PR #56354 | OSX.1014.Amd64.Open |
8/6 | PR #56983 | OSX.1014.Amd64.Open |
8/10 | PR #57159 | OSX.1015.Amd64.Open - Mono |
Failure:
System.AggregateException : One or more errors occurred. (The specified item could not be found in the keychain.) (The following constructor parameters did not have matching fixture data: CertificateSetup setup)
---- Interop+AppleCrypto+AppleCommonCryptoCryptographicException : The specified item could not be found in the keychain.
---- The following constructor parameters did not have matching fixture data: CertificateSetup setup
----- Inner Stack Trace #1 (Interop+AppleCrypto+AppleCommonCryptoCryptographicException) -----
at Interop.AppleCrypto.X509CopyWithPrivateKey(SafeSecCertificateHandle certHandle, SafeSecKeyRefHandle privateKeyHandle, SafeKeychainHandle targetKeychain) in /_/src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.X509.cs:line 422
at Internal.Cryptography.Pal.AppleCertificatePal.CopyWithPrivateKey(SafeSecKeyRefHandle privateKey) in /_/src/libraries/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.OSX/AppleCertificatePal.cs:line 649
at Internal.Cryptography.Pal.AppleCertificatePal.CopyWithPrivateKey(RSA privateKey) in /_/src/libraries/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.OSX/AppleCertificatePal.cs:line 566
at System.Security.Cryptography.X509Certificates.RSACertificateExtensions.CopyWithPrivateKey(X509Certificate2 certificate, RSA privateKey) in /_/src/libraries/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/RSACertificateExtensions.cs:line 56
at System.Net.Security.Tests.TestHelper.GenerateCertificates(String targetName, String testName, Boolean longChain, Boolean serverCertificate) in /_/src/libraries/System.Net.Security/tests/FunctionalTests/TestHelper.cs:line 176
at System.Net.Security.Tests.CertificateSetup..ctor() in /_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs:line 29
----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
Sample Kusto query
TestResults
| join kind=inner WorkItems on WorkItemId
| join kind=inner Jobs on JobId
| where Finished >= datetime(2021-05-01) and Method == "SslStream_TargetHostName_Succeeds" and Result == 'Fail'
| order by Finished desc
| project Finished, Branch, Type, Method, Arguments, QueueName, MachineName, Message, StackTrace
/cc @wfurt @aik-jahoda