2 writes to Certificate
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\ConfigurationReader.cs (1)
112Certificate = new CertificateConfig(endpointConfig.GetSection(CertificateKey))
TlsConfigurationLoader.cs (1)
83endpoint.Certificate = defaultCertificateConfig;
20 references to Certificate
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\ConfigurationReader.cs (6)
213if (endpoint.Certificate != null && (endpoint.Certificate.IsFileCert || endpoint.Certificate.IsStoreCert)) 307Certificate == other.Certificate && 314Certificate, ClientCertificateMode ?? Https.ClientCertificateMode.NoCertificate, Sni.Count, _configSectionClone);
KestrelConfigurationLoader.cs (3)
399Debug.Assert(o.EndpointConfig?.Certificate?.FileHasChanged != true, "Preserving an endpoint with file changes"); 465var certConfig = endpointConfig.Certificate; 489var certConfig = endpointConfig.Certificate;
TlsConfigurationLoader.cs (1)
73var (serverCert, fullChain) = _certificateConfigLoader.LoadCertificate(endpoint.Certificate, endpoint.Name);
Microsoft.AspNetCore.Server.Kestrel.Tests (10)
ConfigurationReaderTests.cs (10)
181Assert.NotNull(end1.Certificate); 182Assert.False(end1.Certificate.ConfigSection.Exists()); 189Assert.NotNull(end2.Certificate); 190Assert.False(end2.Certificate.ConfigSection.Exists()); 197Assert.NotNull(end3.Certificate); 198Assert.True(end3.Certificate.ConfigSection.Exists()); 199var cert3 = end3.Certificate; 210Assert.NotNull(end4.Certificate); 211Assert.True(end4.Certificate.ConfigSection.Exists()); 212var cert4 = end4.Certificate;