38 writes to ClientCertificateMode
Certificate.Sample (1)
Program.cs (1)
24opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
InMemory.FunctionalTests (19)
HttpsConnectionMiddlewareTests.cs (16)
213ClientCertificateMode = ClientCertificateMode.RequireCertificate 230ClientCertificateMode = ClientCertificateMode.AllowCertificate 509options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 545options.ClientCertificateMode = ClientCertificateMode.NoCertificate; 589options.ClientCertificateMode = ClientCertificateMode.DelayCertificate; 630options.ClientCertificateMode = ClientCertificateMode.DelayCertificate; 763options.ClientCertificateMode = ClientCertificateMode.DelayCertificate; 887options.ClientCertificateMode = ClientCertificateMode.DelayCertificate; 1024options.ClientCertificateMode = ClientCertificateMode.DelayCertificate; 1071options.ClientCertificateMode = ClientCertificateMode.DelayCertificate; 1140options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1172ClientCertificateMode = mode, 1205ClientCertificateMode = mode, 1231ClientCertificateMode = mode 1254options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1279options.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
HttpsTests.cs (2)
115options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 147options.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
KestrelMetricsTests.cs (1)
864options.ClientCertificateMode = Https.ClientCertificateMode.RequireCertificate;
Interop.FunctionalTests (6)
Http3\Http3TlsTests.cs (4)
92httpsOptions.ClientCertificateMode = mode; 134httpsOptions.ClientCertificateMode = mode; 179httpsOptions.ClientCertificateMode = mode; 233httpsOptions.ClientCertificateMode = ClientCertificateMode.AllowCertificate;
HttpClientHttp2InteropTests.cs (2)
1612httpsOptions.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1657httpsOptions.ClientCertificateMode = ClientCertificateMode.DelayCertificate;
Kestrel.SampleApp (1)
Startup.cs (1)
94httpsOptions.ClientCertificateMode = ClientCertificateMode.DelayCertificate;
Microsoft.AspNetCore.Server.Kestrel.Core (3)
HttpsConnectionAdapterOptions.cs (1)
26ClientCertificateMode = ClientCertificateMode.NoCertificate;
KestrelConfigurationLoader.cs (1)
260httpsOptions.ClientCertificateMode = defaults.ClientCertificateMode.Value;
TlsConfigurationLoader.cs (1)
64httpsOptions.ClientCertificateMode = endpoint.ClientCertificateMode.Value;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
SniOptionsSelectorTests.cs (2)
755ClientCertificateMode = ClientCertificateMode.AllowCertificate 790ClientCertificateMode = ClientCertificateMode.AllowCertificate
Microsoft.AspNetCore.Server.Kestrel.Tests (6)
KestrelConfigurationLoaderTests.cs (6)
165opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 211opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1058opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1128opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1386opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1443opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
22 references to ClientCertificateMode
InMemory.FunctionalTests (2)
HttpsTests.cs (2)
123Assert.Equal(ClientCertificateMode.RequireCertificate, opt.ClientCertificateMode); 156Assert.Equal(ClientCertificateMode.RequireCertificate, opt.ClientCertificateMode);
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\SniOptionsSelector.cs (1)
83var clientCertificateMode = sniConfig.ClientCertificateMode ?? fallbackHttpsOptions.ClientCertificateMode;
Middleware\HttpsConnectionMiddleware.cs (8)
111var remoteCertificateValidationCallback = _options.ClientCertificateMode == ClientCertificateMode.NoCertificate ? 150_options?.ClientCertificateMode == ClientCertificateMode.DelayCertificate; 341ClientCertificateRequired = _options.ClientCertificateMode == ClientCertificateMode.AllowCertificate 342|| _options.ClientCertificateMode == ClientCertificateMode.RequireCertificate, 416return RemoteCertificateValidationCallback(_options.ClientCertificateMode, _options.ClientCertificateValidation, certificate, chain, sslPolicyErrors); 566if (httpsOptions.ClientCertificateMode == ClientCertificateMode.AllowCertificate 567|| httpsOptions.ClientCertificateMode == ClientCertificateMode.RequireCertificate) 574RemoteCertificateValidationCallback(httpsOptions.ClientCertificateMode, httpsOptions.ClientCertificateValidation, certificate, chain, sslPolicyErrors);
Microsoft.AspNetCore.Server.Kestrel.Tests (11)
KestrelConfigurationLoaderTests.cs (11)
182Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode); 225Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode); 1074Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode); 1144Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode); 1316Assert.Equal(ClientCertificateMode.NoCertificate, opt.ClientCertificateMode); 1330Assert.Equal(ClientCertificateMode.AllowCertificate, opt.HttpsOptions.ClientCertificateMode); 1339Assert.Equal(ClientCertificateMode.NoCertificate, httpsOptions.ClientCertificateMode); 1398Assert.Equal(ClientCertificateMode.AllowCertificate, opt.HttpsOptions.ClientCertificateMode); 1425Assert.Equal(ClientCertificateMode.AllowCertificate, opt.HttpsOptions.ClientCertificateMode); 1442Assert.Equal(ClientCertificateMode.AllowCertificate, opt.ClientCertificateMode); 1455Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode);