How can I specify my .keystore file with Spring Boot and Tomcat?

后端 未结 5 1295
面向向阳花
面向向阳花 2020-12-04 09:20

I\'m trying to set up Spring Security to work with Spring Boot\'s embedded Tomcat instance. There are quite a few basic samples that do this but I\'m stuck where they leave

5条回答
  •  甜味超标
    2020-12-04 10:03

    If you don't want to implement your connector customizer, you can build and import the library (https://github.com/ycavatars/spring-boot-https-kit) which provides predefined connector customizer. According to the README, you only have to create your keystore, configure connector.https.*, import the library and add @ComponentScan("org.ycavatars.sboot.kit"). Then you'll have HTTPS connection.

提交回复
热议问题