41 references to RequireCertificate
Aspire.Dashboard (3)
DashboardWebApplication.cs (3)
526values[$"Kestrel:Endpoints:{endpointName}:ClientCertificateMode"] = ClientCertificateMode.RequireCertificate.ToString(); 575if (endpointConfiguration.HttpsOptions.ClientCertificateMode == ClientCertificateMode.RequireCertificate) 607if (endpointConfiguration.HttpsOptions.ClientCertificateMode == ClientCertificateMode.RequireCertificate)
Certificate.Sample (1)
Program.cs (1)
24opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
InMemory.FunctionalTests (13)
HttpsConnectionMiddlewareTests.cs (8)
213ClientCertificateMode = ClientCertificateMode.RequireCertificate 509options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1140options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1163[InlineData(ClientCertificateMode.RequireCertificate)] 1197[InlineData(ClientCertificateMode.RequireCertificate)] 1223[InlineData(ClientCertificateMode.RequireCertificate)] 1254options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1279options.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
HttpsTests.cs (4)
115options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 123Assert.Equal(ClientCertificateMode.RequireCertificate, opt.ClientCertificateMode); 147options.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 156Assert.Equal(ClientCertificateMode.RequireCertificate, opt.ClientCertificateMode);
KestrelMetricsTests.cs (1)
864options.ClientCertificateMode = Https.ClientCertificateMode.RequireCertificate;
Interop.FunctionalTests (4)
Http3\Http3TlsTests.cs (3)
73[InlineData(ClientCertificateMode.RequireCertificate)] 159[InlineData(ClientCertificateMode.RequireCertificate, false)] 160[InlineData(ClientCertificateMode.RequireCertificate, true)]
HttpClientHttp2InteropTests.cs (1)
1612httpsOptions.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\SniOptionsSelector.cs (1)
88|| clientCertificateMode == ClientCertificateMode.RequireCertificate;
Middleware\HttpsConnectionMiddleware.cs (3)
342|| _options.ClientCertificateMode == ClientCertificateMode.RequireCertificate, 384return clientCertificateMode != ClientCertificateMode.RequireCertificate; 567|| httpsOptions.ClientCertificateMode == ClientCertificateMode.RequireCertificate)
Microsoft.AspNetCore.Server.Kestrel.Tests (16)
ConfigurationReaderTests.cs (1)
195Assert.Equal(ClientCertificateMode.RequireCertificate, end3.ClientCertificateMode);
KestrelConfigurationLoaderTests.cs (15)
165opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 182Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode); 211opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 225Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode); 790new KeyValuePair<string, string>("Endpoints:End1:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 823new KeyValuePair<string, string>("EndpointDefaults:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 1058opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1074Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode); 1128opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1144Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode); 1361new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 1373Assert.Equal(ClientCertificateMode.RequireCertificate, sniConfig.ClientCertificateMode); 1386opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1443opt.ClientCertificateMode = ClientCertificateMode.RequireCertificate; 1455Assert.Equal(ClientCertificateMode.RequireCertificate, opt.HttpsOptions.ClientCertificateMode);