mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Tomcat's SSL configuration is applied to an `SSLHostConfig` for each host name. When an SSL bundle was updated, a new `SSLHostConfig` was created and used to replace the existing one for that host name, discarding any customizations that had been applied to it (for example by a `TomcatConnectorCustomizer`). Reuse the existing `SSLHostConfig` for the host name when one is present, applying the updated bundle to it rather than replacing it. The existing `SSLHostConfigCertificate` is also reused, as adding a second certificate with an undefined type to an `SSLHostConfig` is rejected by Tomcat. See gh-51290 Signed-off-by: Scott Frederick <scottyfred@gmail.com>