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