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