11 writes to SslOptions
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
139httpHandler.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)
385_underlyingHandler.SslOptions = _underlyingHandler.SslOptions;
31 references to SslOptions
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
144configuration.Bind("Dashboard:ResourceServiceClient:Ssl", httpHandler.SslOptions);
Aspire.Dashboard.Tests (3)
Integration\DashboardClientAuthTests.cs (1)
132configureHttpHandler: 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)
274_underlyingHandler.SslOptions.LocalCertificateSelectionCallback = (sender, targetHost, localCertificates, remoteCertificate, acceptableIssuers) => CertificateHelper.GetEligibleClientCertificate(_underlyingHandler.SslOptions.ClientCertificates)!; 281_underlyingHandler.SslOptions.LocalCertificateSelectionCallback = (sender, targetHost, localCertificates, remoteCertificate, acceptableIssuers) => CertificateHelper.GetEligibleClientCertificate()!; 302return _underlyingHandler.SslOptions.ClientCertificates ?? 303(_underlyingHandler.SslOptions.ClientCertificates = new X509CertificateCollection()); 314get => (_underlyingHandler.SslOptions.RemoteCertificateValidationCallback?.Target as ConnectHelper.CertificateCallbackMapper)?.FromHttpClientHandler; 318_underlyingHandler.SslOptions.RemoteCertificateValidationCallback = value != null ? 328get => _underlyingHandler.SslOptions.CertificateRevocationCheckMode == X509RevocationMode.Online; 332_underlyingHandler.SslOptions.CertificateRevocationCheckMode = value ? X509RevocationMode.Online : X509RevocationMode.NoCheck; 339get => _underlyingHandler.SslOptions.EnabledSslProtocols; 343_underlyingHandler.SslOptions.EnabledSslProtocols = value; 385_underlyingHandler.SslOptions = _underlyingHandler.SslOptions;
System.Net.Requests (4)
System\Net\HttpWebRequest.cs (4)
1766handler.SslOptions.ClientCertificates = new X509CertificateCollection(parameters.ClientCertificates); 1770handler.SslOptions.EnabledSslProtocols = (SslProtocols)parameters.SslProtocols; 1771handler.SslOptions.CertificateRevocationCheckMode = parameters.CheckCertificateRevocationList ? X509RevocationMode.Online : X509RevocationMode.NoCheck; 1773handler.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);