11 writes to SslOptions
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
137httpHandler.SslOptions = new SslClientAuthenticationOptions
Aspire.Dashboard.Tests (2)
Integration\IntegrationTestHelpers.cs (2)
119SslOptions = 180SslOptions =
HttpStress (1)
Program.cs (1)
515SslOptions = new SslClientAuthenticationOptions
InMemory.FunctionalTests (4)
EventSourceTests.cs (1)
178SslOptions = new SslClientAuthenticationOptions
KestrelMetricsTests.cs (3)
714SslOptions = new SslClientAuthenticationOptions 793SslOptions = new SslClientAuthenticationOptions 883SslOptions = new SslClientAuthenticationOptions
Interop.FunctionalTests (2)
Http3\Http3TlsTests.cs (1)
480httpHandler.SslOptions = new SslClientAuthenticationOptions
HttpHelpers.cs (1)
41handler.SslOptions = new System.Net.Security.SslClientAuthenticationOptions
System.Net.Http (1)
System\Net\Http\HttpClientHandler.cs (1)
382_underlyingHandler.SslOptions = _underlyingHandler.SslOptions;
31 references to SslOptions
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
142configuration.Bind("Dashboard:ResourceServiceClient:Ssl", httpHandler.SslOptions);
Aspire.Dashboard.Tests (3)
Integration\DashboardClientAuthTests.cs (1)
137configureHttpHandler: handler => handler.SslOptions.RemoteCertificateValidationCallback = (sender, cert, chain, sslPolicyErrors) => true);
Integration\IntegrationTestHelpers.cs (2)
130handler.SslOptions.ClientCertificates = clientCertificates; 191handler.SslOptions.ClientCertificates = clientCertificates;
HttpClientApp (2)
Program.cs (2)
13handler.SslOptions.RemoteCertificateValidationCallback = (_, _, _, _) => true; 14handler.SslOptions.ClientCertificates = new X509CertificateCollection(new[] { TestResources.GetTestCertificate("eku.client.pfx") });
Interop.FunctionalTests (4)
HttpClientHttp2InteropTests.cs (4)
1628handler.SslOptions.RemoteCertificateValidationCallback = (_, _, _, _) => true; 1629handler.SslOptions.LocalCertificateSelectionCallback = (_, _, _, _, _) => TestResources.GetTestCertificate(); 1673handler.SslOptions.RemoteCertificateValidationCallback = (_, _, _, _) => true; 1674handler.SslOptions.LocalCertificateSelectionCallback = (_, _, _, _, _) => TestResources.GetTestCertificate();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (1)
36handler.SslOptions.RemoteCertificateValidationCallback = (_, _, _, _) => true;
System.Net.Http (12)
System\Net\Http\HttpClientHandler.cs (12)
271_underlyingHandler.SslOptions.LocalCertificateSelectionCallback = (sender, targetHost, localCertificates, remoteCertificate, acceptableIssuers) => CertificateHelper.GetEligibleClientCertificate(_underlyingHandler.SslOptions.ClientCertificates)!; 278_underlyingHandler.SslOptions.LocalCertificateSelectionCallback = (sender, targetHost, localCertificates, remoteCertificate, acceptableIssuers) => CertificateHelper.GetEligibleClientCertificate()!; 299return _underlyingHandler.SslOptions.ClientCertificates ?? 300(_underlyingHandler.SslOptions.ClientCertificates = new X509CertificateCollection()); 311get => (_underlyingHandler.SslOptions.RemoteCertificateValidationCallback?.Target as ConnectHelper.CertificateCallbackMapper)?.FromHttpClientHandler; 315_underlyingHandler.SslOptions.RemoteCertificateValidationCallback = value != null ? 325get => _underlyingHandler.SslOptions.CertificateRevocationCheckMode == X509RevocationMode.Online; 329_underlyingHandler.SslOptions.CertificateRevocationCheckMode = value ? X509RevocationMode.Online : X509RevocationMode.NoCheck; 336get => _underlyingHandler.SslOptions.EnabledSslProtocols; 340_underlyingHandler.SslOptions.EnabledSslProtocols = value; 382_underlyingHandler.SslOptions = _underlyingHandler.SslOptions;
System.Net.Requests (4)
System\Net\HttpWebRequest.cs (4)
1735handler.SslOptions.ClientCertificates = new X509CertificateCollection(parameters.ClientCertificates); 1739handler.SslOptions.EnabledSslProtocols = (SslProtocols)parameters.SslProtocols; 1740handler.SslOptions.CertificateRevocationCheckMode = parameters.CheckCertificateRevocationList ? X509RevocationMode.Online : X509RevocationMode.NoCheck; 1742handler.SslOptions.RemoteCertificateValidationCallback = (message, cert, chain, errors) =>
System.Net.WebSockets.Client (4)
System\Net\WebSockets\WebSocketHandle.Managed.cs (4)
284handler.SslOptions.RemoteCertificateValidationCallback = options.RemoteCertificateValidationCallback; 301Debug.Assert(handler.SslOptions.ClientCertificates == null); 302handler.SslOptions.ClientCertificates = new X509Certificate2Collection(); 303handler.SslOptions.ClientCertificates.AddRange(options.ClientCertificates);