1 write to HttpsOptions
Microsoft.AspNetCore.Server.Kestrel.Core (1)
EndpointConfiguration.cs (1)
19
HttpsOptions
= httpsOptions ?? throw new ArgumentNullException(nameof(httpsOptions));
22 references to HttpsOptions
Kestrel.SampleApp (1)
Startup.cs (1)
161
opt.
HttpsOptions
.SslProtocols = SslProtocols.Tls12;
Microsoft.AspNetCore.Server.Kestrel.Tests (21)
KestrelConfigurationLoaderTests.cs (21)
179
Assert.NotNull(opt.
HttpsOptions
.ServerCertificate);
180
Assert.NotNull(opt.
HttpsOptions
.ServerCertificateChain);
181
Assert.Equal(2, opt.
HttpsOptions
.ServerCertificateChain.Count);
182
Assert.Equal(ClientCertificateMode.RequireCertificate, opt.
HttpsOptions
.ClientCertificateMode);
225
Assert.Equal(ClientCertificateMode.RequireCertificate, opt.
HttpsOptions
.ClientCertificateMode);
268
Assert.Equal(opt.
HttpsOptions
.ServerCertificate.SerialNumber, certificate.SerialNumber);
693
Assert.Equal(opt.
HttpsOptions
.ServerCertificate.SerialNumber, certificate.SerialNumber);
884
Assert.Equal(opt.
HttpsOptions
.ServerCertificate.SerialNumber, expectedSerialNumber);
983
Assert.Equal(opt.
HttpsOptions
.ServerCertificate.SerialNumber, expectedSerialNumber);
1073
Assert.NotNull(opt.
HttpsOptions
.ServerCertificate);
1074
Assert.Equal(ClientCertificateMode.RequireCertificate, opt.
HttpsOptions
.ClientCertificateMode);
1143
Assert.NotNull(opt.
HttpsOptions
.ServerCertificate);
1144
Assert.Equal(ClientCertificateMode.RequireCertificate, opt.
HttpsOptions
.ClientCertificateMode);
1194
Assert.Equal(SslProtocols.Tls11, opt.
HttpsOptions
.SslProtocols);
1235
Assert.Equal(SslProtocols.Tls11, opt.
HttpsOptions
.SslProtocols);
1264
Assert.Equal(SslProtocols.Tls11, opt.
HttpsOptions
.SslProtocols);
1297
Assert.Equal(SslProtocols.Tls12, opt.
HttpsOptions
.SslProtocols);
1330
Assert.Equal(ClientCertificateMode.AllowCertificate, opt.
HttpsOptions
.ClientCertificateMode);
1398
Assert.Equal(ClientCertificateMode.AllowCertificate, opt.
HttpsOptions
.ClientCertificateMode);
1425
Assert.Equal(ClientCertificateMode.AllowCertificate, opt.
HttpsOptions
.ClientCertificateMode);
1455
Assert.Equal(ClientCertificateMode.RequireCertificate, opt.
HttpsOptions
.ClientCertificateMode);