Support certificate aliasing in kestrel config #24481
Labels
affected-very-few
This issue impacts very few customers
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-kestrel
severity-minor
This label is used by an internal tool
Milestone
Today kestrel's config supports a top level
Certificates
list as well as acertificate
per endpoint.https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1#listenoptionsusehttps
However, the
Certificates
list only supports two values,Default
andDevelopment
.aspnetcore/src/Servers/Kestrel/Core/src/KestrelConfigurationLoader.cs
Line 351 in f28ef7c
aspnetcore/src/Servers/Kestrel/Core/src/KestrelConfigurationLoader.cs
Line 378 in f28ef7c
#15144 adds support for multiple certs per endpoint via SNI, but doesn't change anything about the top level
Certificates
collection.Problem: If a server has multiple endpoints with the same cert, or multiple SNI entries with the same cert, it needs to duplicate that cert in the config for each endpoint or SNI section.
Proposal: Allow the endpoint certificate section (and the new endpoint SNI certificate sections) to reference a cert in the top level
Certificates
collection by name.aspnetcore/src/Servers/Kestrel/Core/src/Internal/ConfigurationReader.cs
Lines 213 to 242 in f28ef7c
@halter73
The text was updated successfully, but these errors were encountered: