1 type derived from X509CertificateCollection
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
15public class X509Certificate2Collection : X509CertificateCollection, IEnumerable<X509Certificate2>
24 instantiations of X509CertificateCollection
Aspire.Dashboard.Tests (3)
Integration\OtlpGrpcServiceTests.cs (3)
317clientCertificates: new X509CertificateCollection(new[] { clientCertificate })); 357clientCertificates: new X509CertificateCollection(new[] { clientCertificate })); 388var 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)
577stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls12 | SslProtocols.Tls11, false)); 639stream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.Tls12 | SslProtocols.Tls11, false)); 1303async () => 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)
697await sslStream.AuthenticateAsClientAsync("localhost", new X509CertificateCollection(), SslProtocols.None, false);
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\common\DirectoryConnection.cs (1)
17protected DirectoryConnection() => _certificatesCollection = new X509CertificateCollection();
System.Net.Http (1)
System\Net\Http\HttpClientHandler.cs (1)
304(_underlyingHandler.SslOptions.ClientCertificates = new X509CertificateCollection());
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
70internal X509CertificateCollection ClientCertificates => field ??= 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)
1531return LazyInitializer.EnsureInitialized(ref _clientCertificates, ref _syncObject, () => new X509CertificateCollection());
System\Net\HttpWebRequest.cs (2)
801get => _clientCertificates ??= new X509CertificateCollection(); 1766handler.SslOptions.ClientCertificates = new X509CertificateCollection(parameters.ClientCertificates);
System.Net.Security (2)
System\Net\Security\SslStream.Protocol.cs (2)
319_sslAuthenticationOptions.ClientCertificates ??= new X509CertificateCollection(); 667X509CertificateCollection 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();
47 references to X509CertificateCollection
Aspire.Dashboard (3)
ServiceClient\DashboardClient.cs (3)
132var certificates = _dashboardOptions.ResourceServiceClient.ClientCertificate.Source switch 177X509CertificateCollection GetFileCertificate() 189X509CertificateCollection GetKeyStoreCertificate()
Aspire.Dashboard.Tests (4)
Integration\IntegrationTestHelpers.cs (3)
117X509CertificateCollection? clientCertificates = null) 143X509CertificateCollection? clientCertificates = null) 159X509CertificateCollection? clientCertificates = null)
Integration\OtlpGrpcServiceTests.cs (1)
388var 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 (5)
HttpConnection.cs (1)
585var clientCertificates = _httpConnectionOptions.ClientCertificates;
HttpConnectionOptions.cs (2)
25private X509CertificateCollection? _clientCertificates; 133public X509CertificateCollection? ClientCertificates
Internal\WebSocketsTransport.cs (2)
216static bool IsX509CertificateCollectionEqual(X509CertificateCollection? left, X509CertificateCollection? right)
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 (2)
System\DirectoryServices\Protocols\common\DirectoryConnection.cs (2)
13private readonly X509CertificateCollection _certificatesCollection; 21public X509CertificateCollection ClientCertificates => _certificatesCollection;
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)
294public X509CertificateCollection ClientCertificates
System.Net.Mail (4)
System\Net\Mail\SmtpClient.cs (1)
326public X509CertificateCollection ClientCertificates
System\Net\Mail\SmtpConnection.cs (2)
37private X509CertificateCollection? _clientCertificates; 69internal X509CertificateCollection? ClientCertificates
System\Net\Mail\SmtpTransport.cs (1)
70internal X509CertificateCollection ClientCertificates => field ??= new X509CertificateCollection();
System.Net.Requests (5)
System\Net\FtpWebRequest.cs (2)
199private X509CertificateCollection? _clientCertificates; 1527public 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)
198internal X509CertificateCollection? ClientCertificates { get; set; }
System\Net\Security\SslClientAuthenticationOptions.cs (1)
43public X509CertificateCollection? ClientCertificates { get; set; }
System\Net\Security\SslStream.cs (7)
36public delegate X509Certificate? LocalCertificateSelectionCallback(object sender, string targetHost, X509CertificateCollection localCertificates, X509Certificate? remoteCertificate, string[] acceptableIssuers); 239public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, 245public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, 317public virtual void AuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, bool checkCertificateRevocation) 322public virtual void AuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation) 382public virtual Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection? clientCertificates, bool checkCertificateRevocation) => AuthenticateAsClientAsync(targetHost, clientCertificates, SslProtocols.None, checkCertificateRevocation); 384public virtual Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection? clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
System\Net\Security\SslStream.Protocol.cs (1)
667X509CertificateCollection 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)