29 instantiations of X509Chain
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
100X509Chain chain = new X509Chain();
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
83X509Chain chain = new X509Chain();
InMemory.FunctionalTests (1)
HttpsConnectionMiddlewareTests.cs (1)
814using (var chain = new X509Chain())
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateAuthenticationHandler.cs (1)
138using var chain = new X509Chain
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Microsoft.Build.Tasks.Core (2)
ManifestUtil\mansign2.cs (2)
1307_signerChain = new X509Chain(signerInfo.pChainContext); 1428_timestamperChain = new X509Chain(timestamperInfo.pChainContext);
Microsoft.DotNet.SignCheckLibrary (2)
Verification\VsixVerifier.cs (1)
163X509Chain certChain = new X509Chain();
Verification\XmlVerifier.cs (1)
73using (var chain = new X509Chain(useMachineContext: true))
System.Net.Quic (1)
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
186chain = new X509Chain();
System.Net.Security (4)
System\Net\CertificateValidationPal.Unix.cs (1)
51chain ??= new X509Chain();
System\Net\Security\SslStream.Protocol.cs (2)
428chain = new X509Chain(); 1068chain ??= new X509Chain();
System\Net\Security\SslStreamCertificateContext.cs (1)
50using (X509Chain chain = new X509Chain())
System.Security.Cryptography (3)
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
362using (X509Chain chain = new X509Chain
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
677using (var chain = new X509Chain())
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
37return new X509Chain();
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
338X509Chain chain = new X509Chain();
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
709X509Chain chain = new X509Chain();
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (2)
64chain = new X509Chain(); 85chain = new X509Chain();
System\Security\Cryptography\Xml\SignedXml.cs (1)
365X509Chain chain = new X509Chain();
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Templates.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
77 references to X509Chain
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
dotnet-svcutil-lib (12)
CmdCredentialsProvider.cs (1)
206private bool ValidateServerCertificate(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors sslPolicyErrors)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
100X509Chain chain = new X509Chain();
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
83X509Chain chain = new X509Chain();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (2)
23private Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> _remoteCertificateValidationCallback; 186private bool RemoteCertificateValidationCallback(HttpRequestMessage sender, X509Certificate2 certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceModelHttpMessageHandler.CoreClr.cs (1)
72public Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool>
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
391private bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain, 636private bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (4)
373private static Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> ChainValidator(Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> previousValidator) 380Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> chained = 393private static bool OnValidateServerCertificate(HttpRequestMessage request, X509Certificate2 certificate, X509Chain chain,
InMemory.FunctionalTests (2)
HttpsConnectionMiddlewareTests.cs (1)
814using (var chain = new X509Chain())
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
41public static bool AllowAnyServerCertificate(object sender, X509Certificate certificate, X509Chain chain)
Interop.FunctionalTests (1)
Http3\Http3TlsTests.cs (1)
482RemoteCertificateValidationCallback = (object _sender, X509Certificate actualCertificate, X509Chain _chain, SslPolicyErrors _sslPolicyErrors) =>
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateAuthenticationHandler.cs (1)
138using var chain = new X509Chain
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Microsoft.AspNetCore.Server.Kestrel.Core (6)
HttpsConnectionAdapterOptions.cs (1)
72public Func<X509Certificate2, X509Chain?, SslPolicyErrors, bool>? ClientCertificateValidation { get; set; }
Middleware\HttpsConnectionMiddleware.cs (4)
377Func<X509Certificate2, X509Chain?, SslPolicyErrors, bool>? clientCertificateValidation, 379X509Chain? chain, 412private bool RemoteCertificateValidationCallback(object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors) 573= (object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors) =>
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
41public static bool AllowAnyServerCertificate(object sender, X509Certificate certificate, X509Chain chain)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicTestHelpers.cs (1)
114private static bool RemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
Microsoft.Build.Tasks.Core (4)
ManifestUtil\mansign2.cs (4)
1287private X509Chain _signerChain = null; 1397internal X509Chain SignerChain 1414private X509Chain _timestamperChain = null; 1456internal X509Chain TimestamperChain
Microsoft.DotNet.SignCheckLibrary (2)
Verification\VsixVerifier.cs (1)
163X509Chain certChain = new X509Chain();
Verification\XmlVerifier.cs (1)
73using (var chain = new X509Chain(useMachineContext: true))
netstandard (1)
netstandard.cs (1)
1959[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Chain))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
868[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Chain))]
System.Net.Http (8)
System\Net\Http\HttpClientHandler.cs (3)
305public Func<HttpRequestMessage, X509Certificate2?, X509Chain?, SslPolicyErrors, bool>? ServerCertificateCustomValidationCallback 371private static Func<HttpRequestMessage, X509Certificate2?, X509Chain?, SslPolicyErrors, bool>? s_dangerousAcceptAnyServerCertificateValidator; 373public static Func<HttpRequestMessage, X509Certificate2?, X509Chain?, SslPolicyErrors, bool> DangerousAcceptAnyServerCertificateValidator =>
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (5)
25public readonly Func<HttpRequestMessage, X509Certificate2?, X509Chain?, SslPolicyErrors, bool> FromHttpClientHandler; 28public CertificateCallbackMapper(Func<HttpRequestMessage, X509Certificate2?, X509Chain?, SslPolicyErrors, bool> fromHttpClientHandler) 31ForSocketsHttpHandler = (object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors) => 44Func<HttpRequestMessage, X509Certificate2?, X509Chain?, SslPolicyErrors, bool> localFromHttpClientHandler = mapper.FromHttpClientHandler; 46sslOptions.RemoteCertificateValidationCallback = (object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors) =>
System.Net.Http.WinHttpHandler (1)
artifacts\obj\System.Net.Http.WinHttpHandler\Debug\net10.0\System.Net.Http.WinHttpHandler.notsupported.cs (1)
44public System.Func<System.Net.Http.HttpRequestMessage, System.Security.Cryptography.X509Certificates.X509Certificate2, System.Security.Cryptography.X509Certificates.X509Chain, System.Net.Security.SslPolicyErrors, bool>? ServerCertificateValidationCallback { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } }
System.Net.Quic (3)
src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (2)
16internal static SslPolicyErrors BuildChainAndVerifyProperties(X509Chain chain, X509Certificate2 remoteCertificate, bool checkCertName, bool isServer, string? hostName, Span<byte> certificateBuffer) 20internal static SslPolicyErrors BuildChainAndVerifyProperties(X509Chain chain, X509Certificate2 remoteCertificate, bool checkCertName, bool _ /*isServer*/, string? hostName)
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
181X509Chain? chain = null;
System.Net.Security (13)
src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (2)
16internal static SslPolicyErrors BuildChainAndVerifyProperties(X509Chain chain, X509Certificate2 remoteCertificate, bool checkCertName, bool isServer, string? hostName, Span<byte> certificateBuffer) 20internal static SslPolicyErrors BuildChainAndVerifyProperties(X509Chain chain, X509Certificate2 remoteCertificate, bool checkCertName, bool _ /*isServer*/, string? hostName)
System\Net\CertificateValidationPal.cs (2)
19private static X509Chain? s_chain; 24internal static X509Certificate2? GetRemoteCertificate(SafeDeleteContext? securityContext, ref X509Chain? chain, X509ChainPolicy? chainPolicy) =>
System\Net\CertificateValidationPal.Unix.cs (2)
15X509Chain chain, 30ref X509Chain? chain,
System\Net\Security\SslStream.cs (1)
33public delegate bool RemoteCertificateValidationCallback(object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors);
System\Net\Security\SslStream.Protocol.cs (5)
416X509Chain? chain = null; 1045X509Chain? chain = null; 1161private void CreateFatalHandshakeAlertToken(SslPolicyErrors sslPolicyErrors, X509Chain chain, ref ProtocolToken alertToken) 1225private static TlsAlertMessage GetAlertMessageFromChain(X509Chain chain) 1274private void LogCertificateValidation(RemoteCertificateValidationCallback? remoteCertValidationCallback, SslPolicyErrors sslPolicyErrors, bool success, X509Chain chain)
System\Net\Security\SslStreamCertificateContext.cs (1)
50using (X509Chain chain = new X509Chain())
System.Security.Cryptography (5)
System\Security\Cryptography\CryptoConfig.cs (1)
265ht.Add("X509Chain", typeof(X509Certificates.X509Chain));
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
362using (X509Chain chain = new X509Chain
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
677using (var chain = new X509Chain()) 1247/// decision cannot be made without additionally checking for trust via <see cref="X509Chain"/>.
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
35public static X509Chain Create()
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
338X509Chain chain = new X509Chain();
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
709X509Chain chain = new X509Chain();
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
22[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Chain))]
System.Security.Cryptography.Xml (4)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (1)
59X509Chain chain;
System\Security\Cryptography\Xml\SignedXml.cs (1)
365X509Chain chain = new X509Chain();
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
944internal static void LogVerifyX509Chain(SignedXml signedXml, X509Chain chain, X509Certificate certificate)
System\Security\Cryptography\Xml\Utils.cs (1)
749internal static bool IsSelfSigned(X509Chain chain)
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
402private bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain,
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();
Templates.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
65using var chain = new X509Chain();