3 instantiations of CertificateConfig
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\ConfigurationReader.cs (3)
46certificates.Add(certificateConfig.Key, new CertificateConfig(certificateConfig)); 112Certificate = new CertificateConfig(endpointConfig.GetSection(CertificateKey)) 154Certificate = new CertificateConfig(sniChild.GetSection(CertificateKey)),
46 references to CertificateConfig
Microsoft.AspNetCore.Server.Kestrel.Core (46)
HttpsConfigurationService.cs (1)
80CertificateConfig? defaultCertificateConfig,
IHttpsConfigurationService.cs (3)
46CertificateConfig? defaultCertificateConfig, 93public readonly CertificateConfig CertificateConfig; 95public CertificateAndConfig(X509Certificate2 certificate, CertificateConfig certificateConfig)
Internal\CertificatePathWatcher.cs (16)
57/// Returns a token that will fire when any watched <see cref="CertificateConfig"/> is changed on disk. 58/// The affected <see cref="CertificateConfig"/> will have <see cref="CertificateConfig.FileHasChanged"/> 67/// Update the set of <see cref="CertificateConfig"/>s being watched for file changes. 68/// If a given <see cref="CertificateConfig"/> appears in both lists, it is first removed and then added. 73public void UpdateWatches(List<CertificateConfig> certificateConfigsToRemove, List<CertificateConfig> certificateConfigsToAdd) 75var addSet = new HashSet<CertificateConfig>(certificateConfigsToAdd, ReferenceEqualityComparer.Instance); 76var removeSet = new HashSet<CertificateConfig>(certificateConfigsToRemove, ReferenceEqualityComparer.Instance); 92foreach (var certificateConfig in addSet) 97foreach (var certificateConfig in removeSet) 106/// <paramref name="certificateConfig"/> must have <see cref="CertificateConfig.IsFileCert"/> set to <code>true</code>. 111internal void AddWatchUnsynchronized(CertificateConfig certificateConfig) 209/// <paramref name="certificateConfig"/> must have <see cref="CertificateConfig.IsFileCert"/> set to <code>true</code>. 214internal void RemoveWatchUnsynchronized(CertificateConfig certificateConfig) 300public readonly HashSet<CertificateConfig> Configs = new(ReferenceEqualityComparer.Instance);
Internal\Certificates\CertificateConfigLoader.cs (2)
26public (X509Certificate2?, X509Certificate2Collection?) LoadCertificate(CertificateConfig? certInfo, string endpointName) 177private static X509Certificate2 LoadFromStoreCert(CertificateConfig certInfo)
Internal\Certificates\ICertificateConfigLoader.cs (1)
12(X509Certificate2?, X509Certificate2Collection?) LoadCertificate(CertificateConfig? certInfo, string endpointName);
Internal\ConfigurationReader.cs (11)
26private IDictionary<string, CertificateConfig>? _certificates; 35public IDictionary<string, CertificateConfig> Certificates => _certificates ??= ReadCertificates(); 39private IDictionary<string, CertificateConfig> ReadCertificates() 41var certificates = new Dictionary<string, CertificateConfig>(0, StringComparer.OrdinalIgnoreCase); 298public CertificateConfig? Certificate { get; set; } 342public CertificateConfig? Certificate { get; set; } 422obj is CertificateConfig other && 434public static bool operator ==(CertificateConfig? lhs, CertificateConfig? rhs) => lhs is null ? rhs is null : lhs.Equals(rhs); 435public static bool operator !=(CertificateConfig? lhs, CertificateConfig? rhs) => !(lhs == rhs);
KestrelConfigurationLoader.cs (8)
77private CertificateConfig? DefaultCertificateConfig { get; set; } 344var oldDefaultCertificateConfig = DefaultCertificateConfig; 437var certificateConfigsToRemove = new List<CertificateConfig>(); 438var certificateConfigsToAdd = new List<CertificateConfig>(); 461var certConfig = endpointConfig.Certificate; 469var sniCertConfig = sniConfig.Certificate; 485var certConfig = endpointConfig.Certificate; 493var sniCertConfig = sniConfig.Certificate;
KestrelServer.cs (1)
101CertificateConfig? defaultCertificateConfig,
TlsConfigurationLoader.cs (3)
47CertificateConfig? defaultCertificateConfig, 129if (configurationReader.Certificates.TryGetValue("Default", out var defaultCertConfig)) 149if (configurationReader.Certificates.TryGetValue("Development", out var certificateConfig) &&