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