79829387

Date: 2025-11-25 07:29:10
Score: 1
Natty:
Report link

I decided to use the simplest way and just restart the application if certificate is changed using spring actuator.

To do it we should enable restart endpoint int application.properties:

management.endpoint.restart.access=read_only

and in my ContainerConfiguration.java:

private void reloadSSLConfig() { 
    restartEndpoint.restart(); 
}

PS: also I've found the article about hot reloading SSL in spring: SSL hot reload in Spring Boot 3.2.0

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alexander Kozlov