13 writes to ClientCertificates
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
139ClientCertificates = certificates
Aspire.Dashboard.Tests (2)
Integration\IntegrationTestHelpers.cs (2)
130handler.SslOptions.ClientCertificates = clientCertificates; 191handler.SslOptions.ClientCertificates = clientCertificates;
HttpClientApp (1)
Program.cs (1)
14handler.SslOptions.ClientCertificates = new X509CertificateCollection(new[] { TestResources.GetTestCertificate("eku.client.pfx") });
Interop.FunctionalTests (1)
HttpHelpers.cs (1)
45ClientCertificates = !includeClientCert ? null : new X509CertificateCollection() { TestResources.GetTestCertificate() },
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionListenerTests.cs (1)
119options.ClientAuthenticationOptions.ClientCertificates = new X509CertificateCollection { testCert };
System.Net.Http (2)
src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (1)
26ClientCertificates = options.ClientCertificates,
System\Net\Http\HttpClientHandler.cs (1)
300(_underlyingHandler.SslOptions.ClientCertificates = new X509CertificateCollection());
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1735handler.SslOptions.ClientCertificates = new X509CertificateCollection(parameters.ClientCertificates);
System.Net.Security (3)
System\Net\Security\SslStream.cs (3)
248ClientCertificates = clientCertificates, 323ClientCertificates = clientCertificates, 385ClientCertificates = clientCertificates,
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
302handler.SslOptions.ClientCertificates = new X509Certificate2Collection();
11 references to ClientCertificates
System.Net.Http (5)
src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (1)
26ClientCertificates = options.ClientCertificates,
System\Net\Http\HttpClientHandler.cs (2)
271_underlyingHandler.SslOptions.LocalCertificateSelectionCallback = (sender, targetHost, localCertificates, remoteCertificate, acceptableIssuers) => CertificateHelper.GetEligibleClientCertificate(_underlyingHandler.SslOptions.ClientCertificates)!; 299return _underlyingHandler.SslOptions.ClientCertificates ??
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
270(sslOptions.ClientCertificates == null || sslOptions.ClientCertificates.Count == 0))
System.Net.Quic (3)
System\Net\Quic\Internal\MsQuicConfiguration.cs (3)
45authenticationOptions.ClientCertificates ?? new X509CertificateCollection(), 60else if (authenticationOptions.ClientCertificates != null) 62foreach (X509Certificate clientCertificate in authenticationOptions.ClientCertificates)
System.Net.Security (1)
System\Net\Security\SslAuthenticationOptions.cs (1)
57ClientCertificates = sslClientAuthenticationOptions.ClientCertificates;
System.Net.WebSockets.Client (2)
System\Net\WebSockets\WebSocketHandle.Managed.cs (2)
301Debug.Assert(handler.SslOptions.ClientCertificates == null); 303handler.SslOptions.ClientCertificates.AddRange(options.ClientCertificates);