Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring-boot Actuator SSL configuration

I'm developing a webapplication with Spring-boot using embedded tomcat. One of the requirements of this app is 2-way SSL (clientAuth).

Enabling ClientAuth is easy enough however we also like to use spring-boot Actuator for management of the app on a different port without clientAuth.

Is there is a clean way to do this?

(Disabling SSL on the actuator endpoints would also be enough)

like image 801
pvgoddijn Avatar asked Sep 17 '25 08:09

pvgoddijn


1 Answers

According to latest spring docs, you can use

management.server.port=8080
management.server.ssl.enabled=false

in the properties to configure the management ports. see production-ready-management-specific-ssl in the spring boot doc for more options.

like image 161
Redlab Avatar answered Sep 19 '25 03:09

Redlab