31 instantiations of X509Chain
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain 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)
23using X509Chain chain = new X509Chain();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Microsoft.Build.Tasks.Core (2)
ManifestUtil\mansign2.cs (2)
1305_signerChain = new X509Chain(signerInfo.pChainContext); 1426_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(); 1065chain ??= 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)
674using (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)
701X509Chain chain = new X509Chain();
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (2)
56chain = new X509Chain(); 77chain = new X509Chain();
System\Security\Cryptography\Xml\SignedXml.cs (1)
365X509Chain chain = new X509Chain();
System.ServiceModel.Primitives (2)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
110X509Chain chain = new X509Chain();
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
208X509Chain chain = new X509Chain();
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Templates.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
88 references to X509Chain
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain 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)
23using X509Chain 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)
374Func<X509Certificate2, X509Chain?, SslPolicyErrors, bool>? clientCertificateValidation, 376X509Chain? chain, 409private bool RemoteCertificateValidationCallback(object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors) 570= (object sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors) =>
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain 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)
1285private X509Chain _signerChain = null; 1395internal X509Chain SignerChain 1412private X509Chain _timestamperChain = null; 1454internal 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)
297public Func<HttpRequestMessage, X509Certificate2?, X509Chain?, SslPolicyErrors, bool>? ServerCertificateCustomValidationCallback 363private static Func<HttpRequestMessage, X509Certificate2?, X509Chain?, SslPolicyErrors, bool>? s_dangerousAcceptAnyServerCertificateValidator; 365public 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\net9.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; 1042X509Chain? chain = null; 1158private void CreateFatalHandshakeAlertToken(SslPolicyErrors sslPolicyErrors, X509Chain chain, ref ProtocolToken alertToken) 1222private static TlsAlertMessage GetAlertMessageFromChain(X509Chain chain) 1271private 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)
674using (var chain = new X509Chain()) 1244/// 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)
701X509Chain 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)
51X509Chain 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.Http (9)
System\ServiceModel\Channels\HttpsChannelFactory.cs (3)
23private Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> _remoteCertificateValidationCallback; 212private bool RemoteCertificateValidationCallback(HttpRequestMessage sender, X509Certificate2 certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) 238private bool WebSocketRemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
System\ServiceModel\Channels\HttpTransportSecurityHelpers.cs (6)
68bool identityValidator(HttpRequestMessage requestMessage, X509Certificate2 cert, X509Chain chain, SslPolicyErrors policyErrors) 87public static void SetServerCertificateValidationCallback(HttpClientHandler handler, Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> validator) 93private static Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> ChainValidator( 94Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> previousValidator, 95Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> validator) 102bool chained(HttpRequestMessage request, X509Certificate2 certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
402private bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain,
System.ServiceModel.Primitives (2)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
110X509Chain chain = new X509Chain();
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
208X509Chain chain = new X509Chain();
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();
Templates.Tests (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
23using X509Chain chain = new X509Chain();