1 type derived from X509CertificateCollection
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
15public class X509Certificate2Collection : X509CertificateCollection, IEnumerable<X509Certificate2>
23 instantiations of X509CertificateCollection
Aspire.Dashboard.Tests (3)
Integration\OtlpGrpcServiceTests.cs (3)
316clientCertificates: new X509CertificateCollection(new[] { clientCertificate })); 356clientCertificates: new X509CertificateCollection(new[] { clientCertificate })); 387var clientCertificates = new X509CertificateCollection(new[] { TestCertificateLoader.GetTestCertificate("eku.client.pfx") });
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
592clientCertificates = new X509CertificateCollection();
HttpClientApp (1)
Program.cs (1)
14handler.SslOptions.ClientCertificates = new X509CertificateCollection(new[] { TestResources.GetTestCertificate("eku.client.pfx") });
InMemory.FunctionalTests (3)
HttpsConnectionMiddlewareTests.cs (3)
429stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls12 | SslProtocols.Tls11, false)); 491stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls12 | SslProtocols.Tls11, false)); 1155async () => await stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls, false));
Interop.FunctionalTests (1)
HttpHelpers.cs (1)
45ClientCertificates = !includeClientCert ? null : new X509CertificateCollection() { TestResources.GetTestCertificate() },
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnectionOptions.cs (1)
51_clientCertificates = new X509CertificateCollection();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionListenerTests.cs (1)
119options.ClientAuthenticationOptions.ClientCertificates = new X509CertificateCollection { testCert };
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionFactoryTests.cs (1)
88{ $"{nameof(HttpConnectionOptions.ClientCertificates)}", new X509CertificateCollection() },
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
698await sslStream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.None, false);
System.Net.Http (1)
System\Net\Http\HttpClientHandler.cs (1)
300(_underlyingHandler.SslOptions.ClientCertificates = new X509CertificateCollection());
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
85internal X509CertificateCollection ClientCertificates => _clientCertificates ??= new X509CertificateCollection();
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
45authenticationOptions.ClientCertificates ?? new X509CertificateCollection(),
System.Net.Requests (3)
System\Net\FtpWebRequest.cs (1)
1533return LazyInitializer.EnsureInitialized(ref _clientCertificates, ref _syncObject, () => new X509CertificateCollection());
System\Net\HttpWebRequest.cs (2)
801get => _clientCertificates ??= new X509CertificateCollection(); 1735handler.SslOptions.ClientCertificates = new X509CertificateCollection(parameters.ClientCertificates);
System.Net.Security (2)
System\Net\Security\SslStream.Protocol.cs (2)
347_sslAuthenticationOptions.ClientCertificates ??= new X509CertificateCollection(); 698X509CertificateCollection tempCollection = new X509CertificateCollection();
System.Net.WebSockets.Client (1)
System\Net\WebSockets\ClientWebSocketOptions.cs (1)
123get => _clientCertificates ??= new X509CertificateCollection();
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
361clientCertificates = new X509CertificateCollection();
45 references to X509CertificateCollection
Aspire.Dashboard (3)
ResourceService\DashboardClient.cs (3)
130var certificates = _dashboardOptions.ResourceServiceClient.ClientCertificate.Source switch 174X509CertificateCollection GetFileCertificate() 186X509CertificateCollection GetKeyStoreCertificate()
Aspire.Dashboard.Tests (4)
Integration\IntegrationTestHelpers.cs (3)
115X509CertificateCollection? clientCertificates = null) 141X509CertificateCollection? clientCertificates = null) 157X509CertificateCollection? clientCertificates = null)
Integration\OtlpGrpcServiceTests.cs (1)
387var clientCertificates = new X509CertificateCollection(new[] { TestCertificateLoader.GetTestCertificate("eku.client.pfx") });
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
587X509CertificateCollection clientCertificates = null; 631X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers)
Microsoft.AspNetCore.Http.Connections.Client (3)
HttpConnection.cs (1)
588var clientCertificates = _httpConnectionOptions.ClientCertificates;
HttpConnectionOptions.cs (2)
25private X509CertificateCollection? _clientCertificates; 133public X509CertificateCollection? ClientCertificates
netstandard (1)
netstandard.cs (1)
1958[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509CertificateCollection))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
867[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509CertificateCollection))]
System.DirectoryServices.Protocols (1)
artifacts\obj\System.DirectoryServices.Protocols\Debug\net10.0\System.DirectoryServices.Protocols.notsupported.cs (1)
166public System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } }
System.Net.Http (2)
src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (1)
16internal static X509Certificate2? GetEligibleClientCertificate(X509CertificateCollection? candidateCerts)
System\Net\Http\HttpClientHandler.cs (1)
290public X509CertificateCollection ClientCertificates
System.Net.Mail (5)
System\Net\Mail\SmtpClient.cs (1)
334public X509CertificateCollection ClientCertificates
System\Net\Mail\SmtpConnection.cs (2)
38private X509CertificateCollection? _clientCertificates; 70internal X509CertificateCollection? ClientCertificates
System\Net\Mail\SmtpTransport.cs (2)
26private X509CertificateCollection? _clientCertificates; 85internal X509CertificateCollection ClientCertificates => _clientCertificates ??= new X509CertificateCollection();
System.Net.Requests (5)
System\Net\FtpWebRequest.cs (2)
199private X509CertificateCollection? _clientCertificates; 1529public X509CertificateCollection ClientCertificates
System\Net\HttpWebRequest.cs (3)
79private X509CertificateCollection? _clientCertificates; 125public readonly X509CertificateCollection? ClientCertificates; 799public X509CertificateCollection ClientCertificates
System.Net.Security (10)
System\Net\Security\SslAuthenticationOptions.cs (1)
170internal X509CertificateCollection? ClientCertificates { get; set; }
System\Net\Security\SslClientAuthenticationOptions.cs (1)
42public X509CertificateCollection? ClientCertificates { get; set; }
System\Net\Security\SslStream.cs (7)
36public delegate X509Certificate? LocalCertificateSelectionCallback(object sender, string targetHost, X509CertificateCollection localCertificates, X509Certificate? remoteCertificate, string[] acceptableIssuers); 235public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, 241public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, 313public virtual void AuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, bool checkCertificateRevocation) 318public virtual void AuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation) 378public virtual Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection? clientCertificates, bool checkCertificateRevocation) => AuthenticateAsClientAsync(targetHost, clientCertificates, SecurityProtocol.SystemDefaultSecurityProtocols, checkCertificateRevocation); 380public virtual Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection? clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
System\Net\Security\SslStream.Protocol.cs (1)
698X509CertificateCollection tempCollection = new X509CertificateCollection();
System.Net.WebSockets.Client (2)
System\Net\WebSockets\ClientWebSocketOptions.cs (2)
27internal X509CertificateCollection? _clientCertificates; 121public X509CertificateCollection ClientCertificates
System.Security.Cryptography (3)
System\Security\Cryptography\X509Certificates\X509CertificateCollection.cs (2)
20public X509CertificateCollection(X509CertificateCollection value) 54public void AddRange(X509CertificateCollection value)
System\Security\Cryptography\X509Certificates\X509CertificateEnumerator.cs (1)
14public X509CertificateEnumerator(X509CertificateCollection mappings)
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
21[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509CertificateCollection))]
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
356X509CertificateCollection clientCertificates = null; 397X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers)