Skip to content

SSL host config customizations may be lost during Tomcat initialization - #51466

Open
scottfrederick wants to merge 1 commit into
spring-projects:mainfrom
scottfrederick:gh-51146-tomcat-customization-init
Open

SSL host config customizations may be lost during Tomcat initialization#51466
scottfrederick wants to merge 1 commit into
spring-projects:mainfrom
scottfrederick:gh-51146-tomcat-customization-init

Conversation

@scottfrederick

Copy link
Copy Markdown
Contributor

This is a follow-up to #51290, which retained SSLHostConfig customizations when reloading an SSL bundle. These changes align the initialization and reload code paths by moving all find-or-reuse logic into addSslHostConfig so that neither path discards configuration that already exists in the connector.

Applying an SSL bundle to a Tomcat server replaced any `SSLHostConfig`
already registered on the connector for a host name, so an
`SSLHostConfig` could not be configured before Spring Boot applied a
bundle to it.

Reuse any existing `SSLHostConfig` during initial configuration, so an
`SSLHostConfig` registered on the connector before the bundle is
applied retains settings such as `trustManagerClassName`,
`truststoreProvider`, or `truststoreAlgorithm`.

Client authentication settings are only applied when creating a new
`SSLHostConfig`, so the `certificateVerification` of an existing
`SSLHostConfig` is retained rather than being overwritten with the
value derived from the `server.ssl.client-auth` property.

Signed-off-by: Scott Frederick <scottyfred@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 26, 2026
@wilkinsona wilkinsona added this to the 4.0.x milestone Aug 26, 2026
@wilkinsona wilkinsona changed the title Retain SSL host config customizations during Tomcat initialization SSL host config customizations may be lost during Tomcat initialization Aug 26, 2026
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants