Hi I want to enable ssl in my spring rest application. That should be accessible by providing certificate only. How can I achieve this. It's new topic for me.
Asked
Active
Viewed 992 times
-1
-
1Possible duplicate of [Spring Boot - enable and configure SSL certificate](https://stackoverflow.com/questions/49534219/spring-boot-enable-and-configure-ssl-certificate) – Sofo Gial Nov 16 '18 at 10:51
-
See [X.509 Authentication in Spring Security](https://www.baeldung.com/x-509-authentication-in-spring-security). Your question is too broad for SO unfortunately. Try it first, and if it doesn't work, post your issue here. – rustyx Nov 16 '18 at 10:51
1 Answers
0
- Get a certificate or create one.
Enable it:
server.ssl.key-store: keystore.p12
server.ssl.key-store-password: mypassword
server.ssl.keyStoreType: PKCS12
server.ssl.keyAlias: tomcat

K.Kostadinov
- 194
- 10
-
Is there any requirement that only private entry should be there in certificate and my keystore type is jks – Lalit Thakare Nov 16 '18 at 11:13