3 instantiations of CertificateConfig
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\ConfigurationReader.cs (3)
46
certificates.Add(certificateConfig.Key, new
CertificateConfig
(certificateConfig));
112
Certificate = new
CertificateConfig
(endpointConfig.GetSection(CertificateKey))
154
Certificate = new
CertificateConfig
(sniChild.GetSection(CertificateKey)),
46 references to CertificateConfig
Microsoft.AspNetCore.Server.Kestrel.Core (46)
HttpsConfigurationService.cs (1)
80
CertificateConfig
? defaultCertificateConfig,
IHttpsConfigurationService.cs (3)
46
CertificateConfig
? defaultCertificateConfig,
93
public readonly
CertificateConfig
CertificateConfig;
95
public 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.
73
public void UpdateWatches(List<
CertificateConfig
> certificateConfigsToRemove, List<
CertificateConfig
> certificateConfigsToAdd)
75
var addSet = new HashSet<
CertificateConfig
>(certificateConfigsToAdd, ReferenceEqualityComparer.Instance);
76
var removeSet = new HashSet<
CertificateConfig
>(certificateConfigsToRemove, ReferenceEqualityComparer.Instance);
92
foreach (
var
certificateConfig in addSet)
97
foreach (
var
certificateConfig in removeSet)
106
/// <paramref name="certificateConfig"/> must have <see cref="
CertificateConfig
.IsFileCert"/> set to <code>true</code>.
111
internal void AddWatchUnsynchronized(
CertificateConfig
certificateConfig)
209
/// <paramref name="certificateConfig"/> must have <see cref="
CertificateConfig
.IsFileCert"/> set to <code>true</code>.
214
internal void RemoveWatchUnsynchronized(
CertificateConfig
certificateConfig)
300
public readonly HashSet<
CertificateConfig
> Configs = new(ReferenceEqualityComparer.Instance);
Internal\Certificates\CertificateConfigLoader.cs (2)
26
public (X509Certificate2?, X509Certificate2Collection?) LoadCertificate(
CertificateConfig
? certInfo, string endpointName)
177
private static X509Certificate2 LoadFromStoreCert(
CertificateConfig
certInfo)
Internal\Certificates\ICertificateConfigLoader.cs (1)
12
(X509Certificate2?, X509Certificate2Collection?) LoadCertificate(
CertificateConfig
? certInfo, string endpointName);
Internal\ConfigurationReader.cs (11)
26
private IDictionary<string,
CertificateConfig
>? _certificates;
35
public IDictionary<string,
CertificateConfig
> Certificates => _certificates ??= ReadCertificates();
39
private IDictionary<string,
CertificateConfig
> ReadCertificates()
41
var certificates = new Dictionary<string,
CertificateConfig
>(0, StringComparer.OrdinalIgnoreCase);
298
public
CertificateConfig
? Certificate { get; set; }
342
public
CertificateConfig
? Certificate { get; set; }
422
obj is
CertificateConfig
other &&
434
public static bool operator ==(
CertificateConfig
? lhs,
CertificateConfig
? rhs) => lhs is null ? rhs is null : lhs.Equals(rhs);
435
public static bool operator !=(
CertificateConfig
? lhs,
CertificateConfig
? rhs) => !(lhs == rhs);
KestrelConfigurationLoader.cs (8)
77
private
CertificateConfig
? DefaultCertificateConfig { get; set; }
344
var
oldDefaultCertificateConfig = DefaultCertificateConfig;
437
var certificateConfigsToRemove = new List<
CertificateConfig
>();
438
var certificateConfigsToAdd = new List<
CertificateConfig
>();
461
var
certConfig = endpointConfig.Certificate;
469
var
sniCertConfig = sniConfig.Certificate;
485
var
certConfig = endpointConfig.Certificate;
493
var
sniCertConfig = sniConfig.Certificate;
KestrelServer.cs (1)
101
CertificateConfig
? defaultCertificateConfig,
TlsConfigurationLoader.cs (3)
47
CertificateConfig
? defaultCertificateConfig,
129
if (configurationReader.Certificates.TryGetValue("Default", out
var
defaultCertConfig))
149
if (configurationReader.Certificates.TryGetValue("Development", out
var
certificateConfig) &&